summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/pindent.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-05-16 15:23:30 (GMT)
committerGeorg Brandl <georg@python.org>2008-05-16 15:23:30 (GMT)
commit8efadf5d6613e76dfc5476f58adb9a2135173129 (patch)
tree93ea7c3914c65801cd3844aa0ea1304676076940 /Tools/scripts/pindent.py
parentd11ae5d6ecda1d233af651a360c9f9140992f05d (diff)
downloadcpython-8efadf5d6613e76dfc5476f58adb9a2135173129.zip
cpython-8efadf5d6613e76dfc5476f58adb9a2135173129.tar.gz
cpython-8efadf5d6613e76dfc5476f58adb9a2135173129.tar.bz2
Ran 2to3 over scripts directory.
Diffstat (limited to 'Tools/scripts/pindent.py')
-rwxr-xr-xTools/scripts/pindent.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/scripts/pindent.py b/Tools/scripts/pindent.py
index 3ea1a52..3f3000d 100755
--- a/Tools/scripts/pindent.py
+++ b/Tools/scripts/pindent.py
@@ -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'):