fix broken py2 compatibity

fix/101-pypy-gen-key
Max Kovgan 2015-03-16 19:39:38 +02:00
parent af781626a9
commit 0af2720754
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ else:
# The remaining StringIO classes which are imported are used to determine if a
# object is a stream-like in :func:`_is_stream`.
if sys.version_info.major == 2:
if 2 == sys.version_info[0]:
# Import the StringIO class from the StringIO module since it is a
# commonly used stream class. It is distinct from either of the
# StringIO's that may be loaded in the above try/except clause, so the