From 8efadf5d6613e76dfc5476f58adb9a2135173129 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Fri, 16 May 2008 15:23:30 +0000 Subject: Ran 2to3 over scripts directory. --- Tools/scripts/mailerdaemon.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Tools/scripts/mailerdaemon.py') diff --git a/Tools/scripts/mailerdaemon.py b/Tools/scripts/mailerdaemon.py index e6ea63300d..6e3fda861e 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: -- cgit v1.2.1