Python syntax bumps
This commit is contained in:
parent
2a85569c1e
commit
70dc23cce4
3 changed files with 3 additions and 3 deletions
|
@ -149,7 +149,7 @@ def maps(cfg):
|
|||
mp = 1
|
||||
while 1:
|
||||
try:
|
||||
yield cfg.get('default','map'+`mp`);
|
||||
yield cfg.get('default','map'+repr(mp));
|
||||
mp= mp+1
|
||||
except:
|
||||
return
|
||||
|
|
|
@ -39,5 +39,5 @@ def printbyrange(lst):
|
|||
out += "%d-%d," % tuple(elt)
|
||||
return out[:-1]
|
||||
|
||||
codepoints = map(lambda x: int(x.strip()), sys.stdin.readlines())
|
||||
codepoints = [int(x.strip) for x in sys.stdin.readlines()]
|
||||
print printbyrange(rangeify(codepoints))
|
||||
|
|
|
@ -22,7 +22,7 @@ from sys import argv
|
|||
|
||||
try:
|
||||
import Image as PIL
|
||||
except ImportError, e:
|
||||
except ImportError as e:
|
||||
print "Unable to import PIL (Python Imaging Library)"
|
||||
raise e
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue