summaryrefslogtreecommitdiffstatshomepage
path: root/py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-09-07 17:08:49 +0100
committerDamien George <damien.p.george@gmail.com>2015-09-07 17:08:49 +0100
commit081f9325f522b25e2f6b4266dca3f2d2dd1c69ac (patch)
tree5eb06ad4c046aa47c5d9939435c4a74649e94066 /py
parenta7ffa972f30052368ccd304787bbe523d212fc57 (diff)
downloadmicropython-081f9325f522b25e2f6b4266dca3f2d2dd1c69ac.tar.gz
micropython-081f9325f522b25e2f6b4266dca3f2d2dd1c69ac.zip
py/lexer: Raise NotImplError for unicode name escape, instead of assert.
Diffstat (limited to 'py')
-rw-r--r--py/lexer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/py/lexer.c b/py/lexer.c
index 17d711696b..1f1eb6caec 100644
--- a/py/lexer.c
+++ b/py/lexer.c
@@ -29,6 +29,7 @@
#include "py/mpstate.h"
#include "py/lexer.h"
+#include "py/runtime.h"
#define TAB_SIZE (8)
@@ -466,7 +467,7 @@ STATIC void mp_lexer_next_token_into(mp_lexer_t *lex, bool first_token) {
// 3MB of text; even gzip-compressed and with minimal structure, it'll take
// roughly half a meg of storage. This form of Unicode escape may be added
// later on, but it's definitely not a priority right now. -- CJA 20140607
- assert(!"Unicode name escapes not supported");
+ mp_not_implemented("unicode name escapes");
break;
default:
if (c >= '0' && c <= '7') {