Changeset 783:e8690b575b06


Ignore:
Timestamp:
Apr 30, 2009, 10:45:28 PM (10 years ago)
Author:
Stefan Schwarzer <sschwarzer@…>
Branch:
default
Convert:
svn:778c30c8-61e0-0310-89d4-fe2f97a467b2/trunk@834
Message:
Try to minimize code for error reproduction.
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • lrucache.py

    r694 r783  
    4141from __future__ import generators
    4242import time
    43 from heapq import heappush, heappop, heapify
     43from ftputil_heapq import heappush, heappop, heapify
    4444
    4545__version__ = "0.2"
     
    112112
    113113        def __repr__(self):
    114             return "<%s %s => %s (%s)>" % \
    115                    (self.__class__, self.key, self.obj, \
    116                     time.asctime(time.localtime(self.atime)))
     114            return "Node %s => %s" % (self.key, self.obj)
     115#             return "<%s %s => %s (%s)>" % \
     116#                    (self.__class__, self.key, self.obj, \
     117#                     time.asctime(time.localtime(self.atime)))
    117118
    118119    def __init__(self, size=DEFAULT_SIZE):
     
    208209        del cache[46]
    209210    print cache
     211    # traceback occurs in this assignment
    210212    cache.size = 10
    211213    print cache
Note: See TracChangeset for help on using the changeset viewer.