/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/lru_cache.py

  • Committer: Jelmer Vernooij
  • Date: 2019-06-02 02:35:46 UTC
  • mfrom: (7309 work)
  • mto: This revision was merged to the branch mainline in revision 7319.
  • Revision ID: jelmer@jelmer.uk-20190602023546-lqco868tnv26d8ow
merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
 
30
30
_null_key = object()
31
31
 
 
32
 
32
33
class _LRUNode(object):
33
34
    """This maintains the linked-list which is the lru internals."""
34
35
 
232
233
    defaults to len() if not supplied.
233
234
    """
234
235
 
235
 
    def __init__(self, max_size=1024*1024, after_cleanup_size=None,
 
236
    def __init__(self, max_size=1024 * 1024, after_cleanup_size=None,
236
237
                 compute_size=None):
237
238
        """Create a new LRUSizeCache.
238
239