summaryrefslogtreecommitdiff
path: root/unix/mpconfigport.h
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-05-22 00:13:44 +0300
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-05-22 00:13:44 +0300
commit1b5abfcaae0188233415b37dcc0a3df1c7ee0656 (patch)
tree3b04d97917e3323ad0c8b66d4f12eef346dd88df /unix/mpconfigport.h
parent2c573f00b8ce1ef67e8e754b5231e061fbd5b064 (diff)
py/objstr: Implement str.center().
Disabled by default, enabled in unix port. Need for this method easily pops up when working with text UI/reporting, and coding workalike manually again and again counter-productive.
Diffstat (limited to 'unix/mpconfigport.h')
-rw-r--r--unix/mpconfigport.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/unix/mpconfigport.h b/unix/mpconfigport.h
index 463f5fe8c..9601673a7 100644
--- a/unix/mpconfigport.h
+++ b/unix/mpconfigport.h
@@ -71,6 +71,7 @@
#define MICROPY_PY_FUNCTION_ATTRS (1)
#define MICROPY_PY_DESCRIPTORS (1)
#define MICROPY_PY_BUILTINS_STR_UNICODE (1)
+#define MICROPY_PY_BUILTINS_STR_CENTER (1)
#define MICROPY_PY_BUILTINS_STR_SPLITLINES (1)
#define MICROPY_PY_BUILTINS_MEMORYVIEW (1)
#define MICROPY_PY_BUILTINS_FROZENSET (1)