summaryrefslogtreecommitdiffstats
path: root/Objects/stringlib/unicodedefs.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-08-16 21:48:02 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-08-16 21:48:02 (GMT)
commit8fa8ee3970f095f47f045891afe118836280e551 (patch)
tree7f64afb1084a746b1ecd7e293fbbddeeb5f270d5 /Objects/stringlib/unicodedefs.h
parent5c03d2075782eab58b33ecc114abb8df025e6057 (diff)
downloadcpython-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.h5
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