Commit 445f978e authored by Stefan Behnel's avatar Stefan Behnel

avoid redundant type pointer comparison in "__Pyx_PyBaseString_Check()" as...

avoid redundant type pointer comparison in "__Pyx_PyBaseString_Check()" as Py2.6+ already has fast builtin type checks
parent f2955a60
...@@ -123,8 +123,7 @@ ...@@ -123,8 +123,7 @@
#define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj) #define __Pyx_PyBaseString_Check(obj) PyUnicode_Check(obj)
#define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj) #define __Pyx_PyBaseString_CheckExact(obj) PyUnicode_CheckExact(obj)
#else #else
#define __Pyx_PyBaseString_Check(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj) || \ #define __Pyx_PyBaseString_Check(obj) (PyString_Check(obj) || PyUnicode_Check(obj))
PyString_Check(obj) || PyUnicode_Check(obj))
#define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj)) #define __Pyx_PyBaseString_CheckExact(obj) (PyString_CheckExact(obj) || PyUnicode_CheckExact(obj))
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment