From a3392d5017ae8c34ad4ac41e896e6ec860e9a405 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 0fb12c6b..eb8e776d 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