From 4afb31ed0acedf6d2c651f4eb42896b9379188ea Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 6 Sep 2009 08:15:01 -0400 Subject: Explicitly request pickle protocol 2 so that Py3-written pickles can be read by Py2. --- coverage/data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/data.py') diff --git a/coverage/data.py b/coverage/data.py index 0fb12c6..eb8e776 100644 --- a/coverage/data.py +++ b/coverage/data.py @@ -111,7 +111,7 @@ class CoverageData: # Write the pickle to the file. fdata = open(filename, 'wb') try: - pickle.dump(data, fdata) + pickle.dump(data, fdata, 2) finally: fdata.close() -- cgit v1.2.1