PY3 should really check for Python >= 3

This commit is contained in:
Nicolas Dandrimont 2013-09-29 14:53:44 +02:00
parent f21ddeeded
commit 295e1240ad

View File

@ -25,7 +25,7 @@ except ImportError:
import builtins # NOQA import builtins # NOQA
import sys import sys
PY3 = sys.version_info[0] == 3 PY3 = sys.version_info[0] >= 3
if PY3: if PY3:
str_type = str str_type = str