Patch for Python 2.6

This commit is contained in:
Miroslav Stampar
2019-03-28 22:54:05 +01:00
parent f8eed1f365
commit 09be7cb361
14 changed files with 14 additions and 14 deletions

View File

@@ -34,7 +34,7 @@ def convert(inputFile):
fileContent = fp.read()
for fileChar in fileContent:
unsignedFileChar = fileChar if sys.version_info.major > 2 else ord(fileChar)
unsignedFileChar = fileChar if sys.version_info >= (3, 0) else ord(fileChar)
if unsignedFileChar != 0:
counter2 += 1