Bump scripts to python3

This commit is contained in:
Jan Henning
2022-05-19 16:25:08 +02:00
parent 3c4f5983dc
commit 218a1cf76a
8 changed files with 34 additions and 35 deletions

View File

@@ -33,13 +33,13 @@ if len(args) != 0:
parser.error("incorrect number of arguments")
if (options.full):
crange = range(0,256)
crange = list(range(0,256))
crange.remove(ord('\n'))
else:
crange = range(32, 127)
crange = list(range(32, 127))
for i in xrange(0, options.count):
for i in range(0, options.count):
len = randint(1, options.depth)
s = [ chr(choice(crange)) for x in xrange(len) ]
s = [ chr(choice(crange)) for x in range(len) ]
line = str(i) + ":/" + "".join(s) + "/" + generateRandomOptions()
print line
print(line)