Skip to content

Commit

Permalink
PEP8 cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
tkem committed Jun 6, 2015
1 parent 9f21a79 commit fcf20a4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions cachetools/cache.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import collections


def one(value):
return 1


class Cache(collections.MutableMapping):
"""Mutable mapping to serve as a simple cache or cache base class."""

Expand All @@ -13,7 +9,7 @@ def __init__(self, maxsize, missing=None, getsizeof=None):
self.__currsize = 0
self.__maxsize = maxsize
self.__missing = missing
self.__getsizeof = getsizeof or one
self.__getsizeof = getsizeof or (lambda x: 1)

def __repr__(self):
return '%s(%r, maxsize=%d, currsize=%d)' % (
Expand Down

0 comments on commit fcf20a4

Please sign in to comment.