changeset 881:4ebb6aff9d67

no more has_key
author Jeff Hammel <k0scist@gmail.com>
date Tue, 06 Aug 2019 14:22:00 -0700
parents cd1ebc68739f
children c26ec5ea9b9a
files python/dictify.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/python/dictify.py	Tue Aug 06 14:01:21 2019 -0700
+++ b/python/dictify.py	Tue Aug 06 14:22:00 2019 -0700
@@ -13,7 +13,7 @@
     thedict = dictify(feh)
     if sys.argv[1:]:
         for i in sys.argv[1:]:
-            if thedict.has_key(i):
+            if i in thedict:
                 print (thedict[i])
     else:
         print (thedict)