From: fuzzyray Date: Tue, 26 Aug 2008 19:51:33 +0000 (-0000) Subject: Fix has_key() deprecation message. (Bug #232797) X-Git-Tag: gentoolkit-0.2.4.3~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7b619ac45cd6e51daa2ba0a23eed22f41bfbe9d1;p=gentoolkit.git Fix has_key() deprecation message. (Bug #232797) svn path=/; revision=509 --- diff --git a/trunk/ChangeLog b/trunk/ChangeLog index 1fc3478..b100110 100644 --- a/trunk/ChangeLog +++ b/trunk/ChangeLog @@ -1,4 +1,5 @@ 2008-08-26: Paul Varner + * glsa-check: Fix has_key() deprecation message. (Bug #232797) * revdep-rebuild: Update fix for Bug 232270 to utilize better patch from Ian Abbott. @@ -6,8 +7,6 @@ * gentoolkit: Fix find_packages and find_installed_packages to print a warning instead of a traceback when an InvalidAtom exception occurs. (Bug #234358) - -2008-08-22: Paul Varner * equery: Fix equery belongs to strip multiple slashes from path names. (Bug #234584) diff --git a/trunk/src/glsa-check/glsa.py b/trunk/src/glsa-check/glsa.py index 5aeb7fe..4c8f280 100644 --- a/trunk/src/glsa-check/glsa.py +++ b/trunk/src/glsa-check/glsa.py @@ -122,7 +122,7 @@ def checkconfig(myconfig): "PRINTWIDTH": "76" } for k in mysettings.keys(): - if not myconfig.has_key(k): + if k not in myconfig: myconfig[k] = mysettings[k] return myconfig