diff options
author | Sascha Silbe <sascha-pgp@silbe.org> | 2010-10-16 09:34:02 (GMT) |
---|---|---|
committer | Sascha Silbe <sascha-pgp@silbe.org> | 2010-11-23 17:03:14 (GMT) |
commit | ca06abcee36a32e9ad33a8ba1b1583e7268f931e (patch) | |
tree | f7a7d0531cd8552f507e84471d95067f418002a8 | |
parent | 049e0c338c33a650e2c92c9c0d622c5412a3f35c (diff) |
PEP8 cleanup: don't use has_key()
has_key() has been deprecated for quite some time now.
Reviewed-by: James Cameron <quozl@laptop.org>
Acked-by: Simon Schampijer <simon@laptop.org>
-rwxr-xr-x | maint-helper.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/maint-helper.py b/maint-helper.py index b963e7f..4f8a0be 100755 --- a/maint-helper.py +++ b/maint-helper.py @@ -79,7 +79,7 @@ def cmd_build_snapshot(): print 'Update NEWS.sugar...' - if os.environ.has_key('SUGAR_NEWS'): + if 'SUGAR_NEWS' in os.environ: sugar_news_path = os.environ['SUGAR_NEWS'] if os.path.isfile(sugar_news_path): f = open(sugar_news_path, 'r') @@ -166,7 +166,7 @@ def check_licenses(path, license, missing): miss_license = False if miss_license: - if not missing.has_key(license): + if license not in missing: missing[license] = [] missing[license].append(full_path) |