summaryrefslogtreecommitdiffstats
path: root/Tools/scripts/suff.py
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/scripts/suff.py')
-rwxr-xr-xTools/scripts/suff.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Tools/scripts/suff.py b/Tools/scripts/suff.py
index 8fbdbc2..462ec32 100755
--- a/Tools/scripts/suff.py
+++ b/Tools/scripts/suff.py
@@ -11,11 +11,10 @@ def main():
suffixes = {}
for filename in files:
suff = getsuffix(filename)
- if not suffixes.has_key(suff):
+ if suff not in suffixes:
suffixes[suff] = []
suffixes[suff].append(filename)
- keys = suffixes.keys()
- keys.sort()
+ keys = sorted(suffixes.keys())
for suff in keys:
print(repr(suff), len(suffixes[suff]))