diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-16 21:48:02 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-08-16 21:48:02 (GMT) |
commit | 8fa8ee3970f095f47f045891afe118836280e551 (patch) | |
tree | 7f64afb1084a746b1ecd7e293fbbddeeb5f270d5 /Objects/stringlib/unicodedefs.h | |
parent | 5c03d2075782eab58b33ecc114abb8df025e6057 (diff) | |
download | cpython-8fa8ee3970f095f47f045891afe118836280e551.zip cpython-8fa8ee3970f095f47f045891afe118836280e551.tar.gz cpython-8fa8ee3970f095f47f045891afe118836280e551.tar.bz2 |
Issue #18701: Remove support of old CPython versions (<3.0) from C code.
Diffstat (limited to 'Objects/stringlib/unicodedefs.h')
-rw-r--r-- | Objects/stringlib/unicodedefs.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Objects/stringlib/unicodedefs.h b/Objects/stringlib/unicodedefs.h index 48d00ec..3db5629 100644 --- a/Objects/stringlib/unicodedefs.h +++ b/Objects/stringlib/unicodedefs.h @@ -24,13 +24,8 @@ #define STRINGLIB_CHECK PyUnicode_Check #define STRINGLIB_CHECK_EXACT PyUnicode_CheckExact -#if PY_VERSION_HEX < 0x03000000 -#define STRINGLIB_TOSTR PyObject_Unicode -#define STRINGLIB_TOASCII PyObject_Repr -#else #define STRINGLIB_TOSTR PyObject_Str #define STRINGLIB_TOASCII PyObject_ASCII -#endif #define STRINGLIB_WANT_CONTAINS_OBJ 1 |