From 2c607e9d3b7dfd6f99d8f9fd8af0a9da6fb5bf3e Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Thu, 29 Aug 2013 12:57:42 +0300 Subject: [PATCH] python-coverage-3.5.3-pickle # HG changeset patch # User Ned Batchelder # Date 1349312975 14400 # Node ID 16020b834643bb8b9953b8d4bcc09691deb549b9 # Parent 70e174f7312c87101b0b5be7ec7dd1acf7869f12 Fix #193: The status.dat file written by py2 can't be read by py3 --- coverage/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/coverage/html.py b/coverage/html.py index fffd9b4..a9fc714 100644 --- a/coverage/html.py +++ b/coverage/html.py @@ -244,7 +244,7 @@ class HtmlStatus(object): try: status_file = os.path.join(directory, self.STATUS_FILE) status = pickle.load(open(status_file, "rb")) - except IOError: + except (IOError, ValueError): usable = False else: usable = True -- 2.34.1