diff options
author | Damien George <damien.p.george@gmail.com> | 2014-11-27 16:55:47 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-11-27 16:55:47 +0000 |
commit | 6f5eb84c1959b7929824a881a0438d0eee23d31a (patch) | |
tree | 301ad18738f26200bcaf99eb253bc8e8076e4acb /py | |
parent | acb92c186cc8c7a02adceb8e51a6db495849138b (diff) | |
download | micropython-6f5eb84c1959b7929824a881a0438d0eee23d31a.tar.gz micropython-6f5eb84c1959b7929824a881a0438d0eee23d31a.zip |
py: #if guard str_make_new when not needed.
Diffstat (limited to 'py')
-rw-r--r-- | py/objstr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/py/objstr.c b/py/objstr.c index 97a5a7d0f7..a8e2760253 100644 --- a/py/objstr.c +++ b/py/objstr.c @@ -136,6 +136,7 @@ STATIC void str_print(void (*print)(void *env, const char *fmt, ...), void *env, } } +#if !MICROPY_PY_BUILTINS_STR_UNICODE || MICROPY_CPYTHON_COMPAT STATIC mp_obj_t str_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) { #if MICROPY_CPYTHON_COMPAT if (n_kw != 0) { @@ -173,6 +174,7 @@ STATIC mp_obj_t str_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_kw, } } } +#endif STATIC mp_obj_t bytes_make_new(mp_obj_t type_in, mp_uint_t n_args, mp_uint_t n_kw, const mp_obj_t *args) { if (n_args == 0) { |