mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-30 10:53:25 +00:00
utils/codelist: Fix TypeError that occurred on any input
This commit is contained in:
parent
9982afb21f
commit
2b1ebdc204
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user