Commit ad9c22cc authored by Jim Fulton's avatar Jim Fulton

Added import of getrefcound from sys.

parent 748e006e
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
__doc__='''PickleJar Object Cache __doc__='''PickleJar Object Cache
$Id: PickleCache.py,v 1.1 1997/12/15 17:51:55 jim Exp $''' $Id: PickleCache.py,v 1.2 1998/03/23 15:50:27 jim Exp $'''
# Copyright # Copyright
# #
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne # Copyright 1996 Digital Creations, L.C., 910 Princess Anne
...@@ -54,8 +54,10 @@ $Id: PickleCache.py,v 1.1 1997/12/15 17:51:55 jim Exp $''' ...@@ -54,8 +54,10 @@ $Id: PickleCache.py,v 1.1 1997/12/15 17:51:55 jim Exp $'''
# #
# (540) 371-6909 # (540) 371-6909
# #
__version__='$Revision: 1.1 $'[11:-2] __version__='$Revision: 1.2 $'[11:-2]
from sys import getrefcount
class PickleCache: class PickleCache:
def __init__(self, cache_size, cache_age=1000): def __init__(self, cache_size, cache_age=1000):
...@@ -104,6 +106,9 @@ class PickleCache: ...@@ -104,6 +106,9 @@ class PickleCache:
############################################################################ ############################################################################
# #
# $Log: PickleCache.py,v $ # $Log: PickleCache.py,v $
# Revision 1.2 1998/03/23 15:50:27 jim
# Added import of getrefcound from sys.
#
# Revision 1.1 1997/12/15 17:51:55 jim # Revision 1.1 1997/12/15 17:51:55 jim
# Split off from PickleJar. # Split off from PickleJar.
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment