Skip to content

Commit

Permalink
Fix #227: Change Cache.__repr__() format.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkem committed Dec 18, 2021
1 parent 33073cb commit 99e001a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cachetools/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@ def __init__(self, maxsize, getsizeof=None):
self.__maxsize = maxsize

def __repr__(self):
return "%s(%r, maxsize=%r, currsize=%r)" % (
return "%s(%s, maxsize=%r, currsize=%r)" % (
self.__class__.__name__,
list(self.__data.items()),
repr(self.__data),
self.__maxsize,
self.__currsize,
)
Expand Down

0 comments on commit 99e001a

Please sign in to comment.