summaryrefslogtreecommitdiff
path: root/coverage/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'coverage/config.py')
-rw-r--r--coverage/config.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/coverage/config.py b/coverage/config.py
index 516fe1b9..85493df1 100644
--- a/coverage/config.py
+++ b/coverage/config.py
@@ -4,6 +4,7 @@
"""Config file for coverage.py"""
import collections
+import copy
import os
import re
@@ -215,7 +216,7 @@ class CoverageConfig(object):
self.xml_output = "coverage.xml"
self.xml_package_depth = 99
- # Defaults for [JSON]
+ # Defaults for [json]
self.json_output = "coverage.json"
self.json_pretty_print = False
self.json_show_contexts = False
@@ -318,6 +319,10 @@ class CoverageConfig(object):
return used
+ def copy(self):
+ """Return a copy of the configuration."""
+ return copy.deepcopy(self)
+
CONFIG_FILE_OPTIONS = [
# These are *args for _set_attr_from_config_option:
# (attr, where, type_="")