Skip to content

Commit

Permalink
don't use 'has_key' as it not available in python3
Browse files Browse the repository at this point in the history
  • Loading branch information
kofemann committed Dec 12, 2019
1 parent 63de05f commit a8a1cc3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mdbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def get_size(s):
if last_symbol in string.digits:
return int(s)

if not DATA_SIZES.has_key(last_symbol):
if last_symbol not in DATA_SIZES:
raise Exception('Invalid format: %s' % s)

return int(s[:-1])*DATA_SIZES[last_symbol]
Expand Down

0 comments on commit a8a1cc3

Please sign in to comment.