Python syntax bumps

This commit is contained in:
Alexander van Gessel 2013-08-22 12:54:51 +02:00
parent 2a85569c1e
commit 70dc23cce4
3 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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))

View file

@ -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