Permalink
Browse files

use old-style imports for all Py3 versions (the remaining support the…

…re was not reliable)

--HG--
extra : transplant_source : %D2%E1%CDGC%11%8B%92%22%3C%27a%01Q%8F%FE%F0%D1ql
  • Loading branch information...
1 parent 528d9d8 commit e2492b10d0199b71f9d8ffbf925beec69026d006 @scoder scoder committed Apr 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Cython/Compiler/ExprNodes.py
@@ -9448,7 +9448,7 @@ def generate_result_code(self, code):
goto bad;
#if PY_VERSION_HEX >= 0x02050000
{
- #if PY_VERSION_HEX >= 0x03030000
+ #if PY_MAJOR_VERSION >= 3
if (level == -1) {
if (strchr(__Pyx_MODULE_NAME, '.')) {
/* try package relative import first */

0 comments on commit e2492b1

Please sign in to comment.