diff options
author | Georg Brandl <georg@python.org> | 2008-05-16 15:23:30 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-05-16 15:23:30 (GMT) |
commit | 8efadf5d6613e76dfc5476f58adb9a2135173129 (patch) | |
tree | 93ea7c3914c65801cd3844aa0ea1304676076940 /Tools/scripts/mailerdaemon.py | |
parent | d11ae5d6ecda1d233af651a360c9f9140992f05d (diff) | |
download | cpython-8efadf5d6613e76dfc5476f58adb9a2135173129.zip cpython-8efadf5d6613e76dfc5476f58adb9a2135173129.tar.gz cpython-8efadf5d6613e76dfc5476f58adb9a2135173129.tar.bz2 |
Ran 2to3 over scripts directory.
Diffstat (limited to 'Tools/scripts/mailerdaemon.py')
-rwxr-xr-x | Tools/scripts/mailerdaemon.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/scripts/mailerdaemon.py b/Tools/scripts/mailerdaemon.py index e6ea633..6e3fda8 100755 --- a/Tools/scripts/mailerdaemon.py +++ b/Tools/scripts/mailerdaemon.py @@ -163,7 +163,7 @@ def parsedir(dir, modify): nok = nwarn = nbad = 0 # find all numeric file names and sort them - files = filter(lambda fn, pat=pat: pat.match(fn) is not None, os.listdir('.')) + files = list(filter(lambda fn, pat=pat: pat.match(fn) is not None, os.listdir('.'))) files.sort(sort_numeric) for fn in files: @@ -198,7 +198,7 @@ def parsedir(dir, modify): date = '%s %02d' % (calendar.month_abbr[mm], dd) except: date = '??????' - if not errordict.has_key(e): + if e not in errordict: errordict[e] = 1 errorfirst[e] = '%s (%s)' % (fn, date) else: |