Commits

Tarek Ziadé committed 2f5c0eb

don't use ternary operator - fixes #225

  • Participants
  • Parent commits 4fc3d69

Comments (0)

Files changed (1)

setuptools/command/easy_install.py

             part = f.read(cfglen)
             # part is in bytes, but we need to read up to the first null
             #  byte.
-            null_byte = bytes([0]) if sys.version_info >= (2,6) else chr(0)
+            if sys.version_info >= (2,6):
+                null_byte = bytes([0])
+            else:
+                chr(0)
             config = part.split(null_byte, 1)[0]
             # Now the config is in bytes, but on Python 3, it must be
             #  unicode for the RawConfigParser, so decode it. Is this the