diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2014-10-27 20:54:52 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-10-27 20:54:52 -0400 |
commit | a0f2211ea7f0766516ba2a3f3f99c1a3fd1c0e9d (patch) | |
tree | e1190be5f3b52fb68290c18bc65421d6a3b7dfab /coverage/results.py | |
parent | 4ba55d99d10378af1908d52b5d55560be742f074 (diff) | |
download | python-coveragepy-git-a0f2211ea7f0766516ba2a3f3f99c1a3fd1c0e9d.tar.gz |
Use json for html status file instead of pickle.
Diffstat (limited to 'coverage/results.py')
-rw-r--r-- | coverage/results.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/coverage/results.py b/coverage/results.py index 5eff0f3e..f1c63bbb 100644 --- a/coverage/results.py +++ b/coverage/results.py @@ -182,6 +182,13 @@ class Numbers(object): self.n_partial_branches = n_partial_branches self.n_missing_branches = n_missing_branches + def init_args(self): + """Return a list for __init__(*args) to recreate this object.""" + return [ + self.n_files, self.n_statements, self.n_excluded, self.n_missing, + self.n_branches, self.n_partial_branches, self.n_missing_branches, + ] + @classmethod def set_precision(cls, precision): """Set the number of decimal places used to report percentages.""" |