From a879bf94e14b30f7a88111c646144d01f735cb44 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 21 Aug 2015 07:46:04 -0400 Subject: Change CoverageData.read and .write to .read_fileobj and .write_fileobj This makes the break from v3 to v4 very clear and introspectable, and .read/.write were bad names for those methods anyway. --- coverage/pickle2json.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/pickle2json.py') diff --git a/coverage/pickle2json.py b/coverage/pickle2json.py index 3d7fc6aa..95b42ef3 100644 --- a/coverage/pickle2json.py +++ b/coverage/pickle2json.py @@ -21,7 +21,7 @@ def pickle2json(infile, outfile): covdata = CoverageData() with open(infile, 'rb') as inf: - covdata.read(inf) + covdata.read_fileobj(inf) covdata.write_file(outfile) finally: -- cgit v1.2.1