[python/port] Support for unicode strings

This commit is contained in:
Ruben Dashyan
2020-01-06 14:19:36 +01:00
committed by EmilieNumworks
parent 57ceda5ac0
commit 389fbbca3a
2 changed files with 4 additions and 0 deletions

View File

@@ -161,6 +161,7 @@ Q(StopIteration)
Q(SyntaxError)
Q(SystemExit)
Q(TypeError)
Q(UnicodeError)
Q(ValueError)
Q(ZeroDivisionError)
Q(_0x0a_)

View File

@@ -50,6 +50,9 @@
// Whether to support property object
#define MICROPY_PY_BUILTINS_PROPERTY (0)
// Whether to support unicode strings
#define MICROPY_PY_BUILTINS_STR_UNICODE (1)
// Whether to set __file__ for imported modules
#define MICROPY_PY___FILE__ (0)