]> code.delx.au - bg-scripts/commitdiff
Removing the keywords arguments from the pickle.dump statement (as cPickle on python2...
authorGreg Darke <greg@tsukasa.net.au>
Wed, 23 Jul 2008 13:39:24 +0000 (23:39 +1000)
committerGreg Darke <greg@tsukasa.net.au>
Wed, 23 Jul 2008 13:39:24 +0000 (23:39 +1000)
randombg.py

index a6fb4f079e35d5a72f13b8d234927869c87a0187..0b13ba3e124293a0d4ac52848983663a97eba576 100755 (executable)
@@ -49,7 +49,7 @@ class BaseFileList(object):
                try:
                        logging.debug("Attempting to store cache")
                        fd = open(filename, 'wb')
-                       pickle.dump(obj = self, file = fd, protocol = 2)
+                       pickle.dump(self, fd, 2)
                        logging.debug("Cache successfully stored")
                except Exception, e:
                        warning("Storing cache: %s" % e)