Ran 2to3 over scripts directory.

This commit is contained in:
Georg Brandl 2008-05-16 15:23:30 +00:00
parent d11ae5d6ec
commit 8efadf5d66
19 changed files with 74 additions and 86 deletions

View file

@ -240,7 +240,7 @@ def fixline(line):
elif found == '*/':
Program = OutsideCommentProgram
n = len(found)
if Dict.has_key(found):
if found in Dict:
subst = Dict[found]
if Program is InsideCommentProgram:
if not Docomments:
@ -304,7 +304,7 @@ def addsubst(substfile):
if key[0] == '*':
key = key[1:]
NotInComment[key] = value
if Dict.has_key(key):
if key in Dict:
err('%s:%r: warning: overriding: %r %r\n' % (substfile, lineno, key, value))
err('%s:%r: warning: previous: %r\n' % (substfile, lineno, Dict[key]))
Dict[key] = value