diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-10 09:42:19 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2012-11-10 09:42:19 -0500 |
commit | 27a4cfb52ba96d73340f7b0b409f5bca035ddd7d (patch) | |
tree | 17e70d04d482e9ae975271b1d6f4c8a3f1e13c4e /coverage/config.py | |
parent | 80d952221a02287e71f5b4457623f681dcc979a1 (diff) | |
download | python-coveragepy-git-27a4cfb52ba96d73340f7b0b409f5bca035ddd7d.tar.gz |
Quiet pylint
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)) |