From 142cc3e30a7e143accb5ac8654b7facb8c185cd4 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 3d7fc6a..95b42ef 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