incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mar...@apache.org
Subject svn commit: r1590839 - /incubator/public/trunk/clutch.py
Date Mon, 28 Apr 2014 23:23:12 GMT
Author: marvin
Date: Mon Apr 28 23:23:12 2014
New Revision: 1590839

URL: http://svn.apache.org/r1590839
Log:
Specify pickle protocol which works for all Python 3.x.

In Python 3.4, a new HIGHEST_PROTOCOL was added (4).  Instead of dumping
with this protocol, specify 3 instead, allowing compat back to Python
3.0.

Modified:
    incubator/public/trunk/clutch.py

Modified: incubator/public/trunk/clutch.py
URL: http://svn.apache.org/viewvc/incubator/public/trunk/clutch.py?rev=1590839&r1=1590838&r2=1590839&view=diff
==============================================================================
--- incubator/public/trunk/clutch.py (original)
+++ incubator/public/trunk/clutch.py Mon Apr 28 23:23:12 2014
@@ -1166,7 +1166,7 @@ fileReport3.close()
 
 # Create the persistent data file.
 outputFile = open('clutch.pkl', 'wb')
-pickle.dump(persist, outputFile, pickle.HIGHEST_PROTOCOL)
+pickle.dump(persist, outputFile, protocol=3)
 outputFile.close()
 
 print("Done. Generated clutch*.ent files.")



---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message