summaryrefslogtreecommitdiff
path: root/coverage/data.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/data.py')
-rw-r--r--coverage/data.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/coverage/data.py b/coverage/data.py
index 77bfd38..71f915d 100644
--- a/coverage/data.py
+++ b/coverage/data.py
@@ -201,16 +201,6 @@ class CoverageData(object):
__bool__ = __nonzero__
- @classmethod
- def _open_for_reading(cls, filename):
- """Open a file appropriately for reading data."""
- return open(filename, "r")
-
- @classmethod
- def _read_raw_data(cls, file_obj):
- """Read the raw data from a file object."""
- return json.load(file_obj)
-
def read(self, file_obj):
"""Read the coverage data from the given file object.
@@ -243,6 +233,16 @@ class CoverageData(object):
)
@classmethod
+ def _open_for_reading(cls, filename):
+ """Open a file appropriately for reading data."""
+ return open(filename, "r")
+
+ @classmethod
+ def _read_raw_data(cls, file_obj):
+ """Read the raw data from a file object."""
+ return json.load(file_obj)
+
+ @classmethod
def _read_raw_data_file(cls, filename):
"""Read the raw data from a file, for debugging."""
with cls._open_for_reading(filename) as f: