# HG changeset patch # User Jeff Hammel # Date 1565126520 25200 # Node ID 4ebb6aff9d674ce699b7e75d445ada2912a4809b # Parent cd1ebc68739f7cd9ae701e9bbe1188d11be2bcbb no more has_key diff -r cd1ebc68739f -r 4ebb6aff9d67 python/dictify.py --- 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)