Update of /cvsroot/freevo/freevo/src/helpers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30225/src/helpers
Modified Files:
cache.py
Log Message:
replace read_pickle and save_pickle with util.cache functions
Index: cache.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/helpers/cache.py,v
retrieving revision 1.41
retrieving revision 1.42
diff -C2 -d -r1.41 -r1.42
*** cache.py 13 Nov 2004 15:56:13 -0000 1.41
--- cache.py 8 Jan 2005 15:09:26 -0000 1.42
***************
*** 12,15 ****
--- 12,18 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.42 2005/01/08 15:09:26 dischi
+ # replace read_pickle and save_pickle with util.cache functions
+ #
# Revision 1.41 2004/11/13 15:56:13 dischi
# do not import mediainfo in util.__init__
***************
*** 145,153 ****
continue
dirname = os.path.dirname(filename)[len(config.OVERLAY_DIR):]
! data = util.read_pickle(filename)
for key in copy.copy(data):
if not os.path.exists(dirname + '/' + key):
del data[key]
! util.save_pickle(data, filename)
print 'done'
--- 148,156 ----
continue
dirname = os.path.dirname(filename)[len(config.OVERLAY_DIR):]
! data = util.cache.load(filename)
for key in copy.copy(data):
if not os.path.exists(dirname + '/' + key):
del data[key]
! util.cache.save(filename, data)
print 'done'
***************
*** 392,396 ****
cachefile = os.path.join(config.FREEVO_CACHEDIR, 'mediainfo')
if os.path.isfile(cachefile):
! info = util.read_pickle(cachefile)
if not info:
print
--- 395,399 ----
cachefile = os.path.join(config.FREEVO_CACHEDIR, 'mediainfo')
if os.path.isfile(cachefile):
! info = util.cache.load(cachefile)
if not info:
print
***************
*** 458,463 ****
try:
import mmpython.version
! util.save_pickle((mmpython.version.CHANGED, VERSION,
! int(time.time()), complete_update), cachefile)
except ImportError:
print 'WARNING: please update mmpython'
--- 461,466 ----
try:
import mmpython.version
! util.cache.save(cachefile, (mmpython.version.CHANGED, VERSION,
! int(time.time()), complete_update))
except ImportError:
print 'WARNING: please update mmpython'
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog