mirror of
https://github.com/python/cpython.git
synced 2025-09-12 03:37:09 +00:00
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
This commit is contained in:
parent
e52c31450d
commit
78821ddf8c
7 changed files with 70 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue