summaryrefslogtreecommitdiff
path: root/Cython/Utility/ModuleSetupCode.c
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2018-05-18 16:02:04 +0200
committerStefan Behnel <stefan_ml@behnel.de>2018-05-18 16:02:04 +0200
commit1c213b2bbdf36d8c7774de03cd98c468d33b1441 (patch)
treef3f7733881ecf1388e3a74063b593abd0de03b81 /Cython/Utility/ModuleSetupCode.c
parent0d37e44c0cd1264f6d003e7f94b2b3af311122ea (diff)
parentac6b858e79e83f991eee21667ab0cd8031faad73 (diff)
downloadcython-1c213b2bbdf36d8c7774de03cd98c468d33b1441.tar.gz
Merge branch '0.28.x'
Diffstat (limited to 'Cython/Utility/ModuleSetupCode.c')
-rw-r--r--Cython/Utility/ModuleSetupCode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c
index 931e94f65..cfb51358f 100644
--- a/Cython/Utility/ModuleSetupCode.c
+++ b/Cython/Utility/ModuleSetupCode.c
@@ -586,6 +586,7 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
#define PyString_Type PyUnicode_Type
#define PyString_Check PyUnicode_Check
#define PyString_CheckExact PyUnicode_CheckExact
+ #define PyObject_Unicode PyObject_Str
#endif
#if PY_MAJOR_VERSION >= 3