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

@@ -166,7 +166,7 @@ class WichmannHill(random.Random):
def choose_boundary():
return uuid.uuid4().hex
if sys.version_info.major > 2:
if sys.version_info >= (3, 0):
xrange = range
else:
xrange = xrange