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

@ -188,7 +188,7 @@ class PythonIndenter:
stack.append((kw, kw))
continue
# end if
if next.has_key(kw) and stack:
if kw in next and stack:
self.putline(line, len(stack)-1)
kwa, kwb = stack[-1]
stack[-1] = kwa, kw
@ -254,7 +254,7 @@ class PythonIndenter:
m = self.kwprog.match(line)
if m:
thiskw = m.group('kw')
if not next.has_key(thiskw):
if thiskw not in next:
thiskw = ''
# end if
if thiskw in ('def', 'class'):