fix whitespace a little

master
neingeist 10 years ago
parent ac7c65e29f
commit c6afbfc820

@ -7,6 +7,7 @@ import os
class HashableDict(dict):
def __hash__(self):
return hash(tuple(sorted(self.items())))
@ -25,7 +26,6 @@ def json_memoize(filename):
json.dump({}, f)
def __call__(self, *args, **kwargs):
with open(filename, "r") as f:
memo = json.load(f)
json_key = repr((self.fn.__name__, args, HashableDict(kwargs)))

Loading…
Cancel
Save