blob: 7f456d2d70b3593c87b01c44ce75450fa902a8d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# HG changeset patch
# User Ned Batchelder <ned@nedbatchelder.com>
# Date 1349312975 14400
# Node ID 16020b834643bb8b9953b8d4bcc09691deb549b9
# Parent 70e174f7312c87101b0b5be7ec7dd1acf7869f12
Fix #193: The status.dat file written by py2 can't be read by py3
Index: coverage-3.5.1b1/coverage/html.py
===================================================================
--- coverage-3.5.1b1.orig/coverage/html.py
+++ coverage-3.5.1b1/coverage/html.py
@@ -247,7 +247,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
|