diff options
Diffstat (limited to 'coverage/config.py')
-rw-r--r-- | coverage/config.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/coverage/config.py b/coverage/config.py index d32d9aeb..f8e400cd 100644 --- a/coverage/config.py +++ b/coverage/config.py @@ -5,7 +5,7 @@ from coverage.backward import string_class # pylint: disable=W0622 # In py3, # ConfigParser was renamed to the more-standard configparser try: - import configparser + import configparser # pylint: disable=F0401 except ImportError: import ConfigParser as configparser @@ -167,9 +167,9 @@ class CoverageConfig(object): ('xml_output', 'xml:output'), ] - def set_attr_from_config_option(self, cp, attr, where, type=''): + 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)) |