diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-21 07:46:04 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-08-21 07:46:04 -0400 |
commit | a879bf94e14b30f7a88111c646144d01f735cb44 (patch) | |
tree | e91712ee5a30e61cdbf0c05c9105b48b36585f67 /coverage/pickle2json.py | |
parent | bfb99cc71c24cb22e497c86d57aba482aefc56f8 (diff) | |
download | python-coveragepy-git-a879bf94e14b30f7a88111c646144d01f735cb44.tar.gz |
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.
Diffstat (limited to 'coverage/pickle2json.py')
-rw-r--r-- | coverage/pickle2json.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |