Skip to content

Commit

Permalink
Removed unnecessary guards
Browse files Browse the repository at this point in the history
  • Loading branch information
thyrgle committed May 24, 2016
1 parent a113ca8 commit 1e87ee7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chest/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ class Chest(MutableMapping):
>>> c.drop()
"""
def __init__(self, data=None, path=None, available_memory=None,
def __init__(self, data=None, path=None,
available_memory=DEFAULT_AVAILABLE_MEMORY,
dump=partial(pickle.dump, protocol=1),
load=pickle.load,
key_to_filename=key_to_filename,
Expand All @@ -105,8 +106,7 @@ def __init__(self, data=None, path=None, available_memory=None,
# Diretory where the on-disk data will be held
self.path = path or tempfile.mkdtemp('.chest')
# Amount of memory we're allowed to use
self.available_memory = (available_memory if available_memory
is not None else DEFAULT_AVAILABLE_MEMORY)
self.available_memory = available_memory
self.memory_usage = sum(map(nbytes, self.inmem.values()))
# Functions to control disk I/O
self.load = load
Expand Down

0 comments on commit 1e87ee7

Please sign in to comment.