Lines Matching refs:hName
42 hName = sys.argv[1] variable
47 if hName in ('_md5', '_sha'):
48 exec('import '+hName)
49 exec('creatorFunc = '+hName+'.new')
50 print("testing speed of old", hName, "legacy interface")
51 elif hName == '_hashlib' and len(sys.argv) > 3:
55 elif hName == '_hashlib' and len(sys.argv) == 3:
59 elif hasattr(hashlib, hName) and hasattr(getattr(hashlib, hName), '__call__'):
60 creatorFunc = getattr(hashlib, hName)
61 print("testing speed of hashlib."+hName, getattr(hashlib, hName))
63 exec("creatorFunc = lambda x=hashlib.new : x(%r)" % hName)
64 print("testing speed of hashlib.new(%r)" % hName)