fix whitespace a little
This commit is contained in:
parent
ac7c65e29f
commit
c6afbfc820
1 changed files with 5 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue