diff python/dictify.py @ 881:4ebb6aff9d67

no more has_key
author Jeff Hammel <k0scist@gmail.com>
date Tue, 06 Aug 2019 14:22:00 -0700
parents cd1ebc68739f
children
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)