Skip to content

Commit

Permalink
Allow namespace to _prep_key to be None
Browse files Browse the repository at this point in the history
This is a local namespace, _prep_key always prepends the global
namespace to the key.
  • Loading branch information
alastair committed May 11, 2021
1 parent 58ed2aa commit 62e4a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion brainzutils/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def _prep_dict(dictionary, namespace=None, encode=True):
for key, value in dictionary.items()}


def _prep_key(key, namespace):
def _prep_key(key, namespace=None):
"""Prepares a key for use with Redis."""
if namespace:
key = "%s:%s" % (namespace, key)
Expand Down

0 comments on commit 62e4a9b

Please sign in to comment.