From 65cf58fc849fa68ebcf8c18d3f282648ae4f63cf Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 2 Mar 2013 22:11:50 +0100 Subject: [PATCH] correct name for basestring in Py3 to 'str' (not 'unicode') --- Cython/Compiler/Code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cython/Compiler/Code.py b/Cython/Compiler/Code.py index 5b752ba..ea55520 100644 --- a/Cython/Compiler/Code.py +++ b/Cython/Compiler/Code.py @@ -36,9 +36,9 @@ non_portable_builtins_map = { # builtins that have different names in different Python versions 'bytes' : ('PY_MAJOR_VERSION < 3', 'str'), 'unicode' : ('PY_MAJOR_VERSION >= 3', 'str'), + 'basestring' : ('PY_MAJOR_VERSION >= 3', 'str'), 'xrange' : ('PY_MAJOR_VERSION >= 3', 'range'), 'BaseException' : ('PY_VERSION_HEX < 0x02050000', 'Exception'), - 'basestring' : ('PY_MAJOR_VERSION >= 3', 'unicode'), } basicsize_builtins_map = { -- 2.7.4