From: Greg Darke Date: Wed, 23 Jul 2008 13:39:24 +0000 (+1000) Subject: Removing the keywords arguments from the pickle.dump statement (as cPickle on python2... X-Git-Url: https://code.delx.au/bg-scripts/commitdiff_plain/7732268adc0319b39799dc37f83e65bb994603fd Removing the keywords arguments from the pickle.dump statement (as cPickle on python2.3 doesn't support keyword arguments) --- diff --git a/randombg.py b/randombg.py index a6fb4f0..0b13ba3 100755 --- a/randombg.py +++ b/randombg.py @@ -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)