From: Markus Lehtonen Date: Thu, 29 Aug 2013 09:57:42 +0000 (+0300) Subject: python-coverage-3.5.3-pickle X-Git-Tag: submit/trunk/20190927.012842~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c607e9d3b7dfd6f99d8f9fd8af0a9da6fb5bf3e;p=tools%2Fpython-coverage.git 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 --- 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