diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-06 08:15:01 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2009-09-06 08:15:01 -0400 |
commit | a3392d5017ae8c34ad4ac41e896e6ec860e9a405 (patch) | |
tree | 5c95d095db57a3a090d9e153537cfae701461a4c /coverage/data.py | |
parent | c4f3442a7c5072329543589344b7fa95288f9831 (diff) | |
download | python-coveragepy-git-a3392d5017ae8c34ad4ac41e896e6ec860e9a405.tar.gz |
Explicitly request pickle protocol 2 so that Py3-written pickles can be read by Py2.
Diffstat (limited to 'coverage/data.py')
-rw-r--r-- | coverage/data.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |