summaryrefslogtreecommitdiff
path: root/coverage/config.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-07-27 13:31:25 -0400
committerNed Batchelder <ned@nedbatchelder.com>2015-07-27 13:31:25 -0400
commit17b3f2f35289f8e8687315a676a396b9f63e292e (patch)
tree4b7664d73cd1cb3eeee8c161e47fca5ed3f1ae95 /coverage/config.py
parent05b312f6e80476ce2c0781771f3ac7c3408782b3 (diff)
downloadpython-coveragepy-git-17b3f2f35289f8e8687315a676a396b9f63e292e.tar.gz
Clean ups
Diffstat (limited to 'coverage/config.py')
-rw-r--r--coverage/config.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/coverage/config.py b/coverage/config.py
index 4b50712f..edcf13e8 100644
--- a/coverage/config.py
+++ b/coverage/config.py
@@ -117,12 +117,12 @@ class HandyConfigParser(configparser.RawConfigParser):
# The default line exclusion regexes.
DEFAULT_EXCLUDE = [
r'(?i)#\s*pragma[:\s]?\s*no\s*cover',
- ]
+]
# The default partial branch regexes, to be modified by the user.
DEFAULT_PARTIAL = [
r'(?i)#\s*pragma[:\s]?\s*no\s*branch',
- ]
+]
# The default partial branch regexes, based on Python semantics.
# These are any Python branching constructs that can't actually execute all
@@ -130,7 +130,7 @@ DEFAULT_PARTIAL = [
DEFAULT_PARTIAL_ALWAYS = [
'while (True|1|False|0):',
'if (True|1|False|0):',
- ]
+]
class CoverageConfig(object):
@@ -276,13 +276,13 @@ class CoverageConfig(object):
# [xml]
('xml_output', 'xml:output'),
('xml_package_depth', 'xml:package_depth', 'int'),
- ]
+ ]
def _set_attr_from_config_option(self, cp, attr, where, type_=''):
"""Set an attribute on self if it exists in the ConfigParser."""
section, option = where.split(":")
if cp.has_option(section, option):
- method = getattr(cp, 'get'+type_)
+ method = getattr(cp, 'get' + type_)
setattr(self, attr, method(section, option))
def get_plugin_options(self, plugin):