utils/codelist: Fix TypeError that occurred on any input

This commit is contained in:
josteph 2019-09-16 20:15:25 +00:00
parent 9982afb21f
commit 2b1ebdc204

View file

@ -39,5 +39,5 @@ def printbyrange(lst):
out += "%d-%d," % tuple(elt)
return out[:-1]
codepoints = [int(x.strip) for x in sys.stdin.readlines()]
codepoints = [int(x.strip()) for x in sys.stdin.readlines()]
print printbyrange(rangeify(codepoints))