diff options
author | Benjamin Peterson <benjamin@python.org> | 2009-01-25 17:15:10 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2009-01-25 17:15:10 +0000 |
commit | 78821ddf8c8eeebf757d72c2989cc0accea155de (patch) | |
tree | c9ce0cdf40089bbc995de6138b237595b4cd51dd /Python/formatter_unicode.c | |
parent | e52c31450dfbe649b559b3fa96630d348b838c19 (diff) | |
download | cpython-git-78821ddf8c8eeebf757d72c2989cc0accea155de.tar.gz |
fix building the core with --disable-unicode
I changed some bytearray methods to use strings instead of unicode like bytes_repr
Also, bytearray.fromhex() can take strings as well as unicode
Diffstat (limited to 'Python/formatter_unicode.c')
-rw-r--r-- | Python/formatter_unicode.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c index 4f2e53fe92..5cf5bad65d 100644 --- a/Python/formatter_unicode.c +++ b/Python/formatter_unicode.c @@ -2,6 +2,9 @@ built-in formatter for unicode. That is, unicode.__format__(). */ #include "Python.h" + +#ifdef Py_USING_UNICODE + #include "../Objects/stringlib/unicodedefs.h" #define FORMAT_STRING _PyUnicode_FormatAdvanced @@ -11,3 +14,5 @@ will convert them to unicode. */ #include "../Objects/stringlib/formatter.h" + +#endif |