summaryrefslogtreecommitdiff
path: root/coverage/config.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2012-11-10 09:42:19 -0500
committerNed Batchelder <ned@nedbatchelder.com>2012-11-10 09:42:19 -0500
commit6f4103b02f6f8f87f98af0c6971ea88a66a0dae8 (patch)
treef6cb67124e17e756fbfc38c68a80ac91f52c8f3f /coverage/config.py
parenta8521643f2573d1335aea7a1d877b5bb8df60e17 (diff)
downloadpython-coveragepy-6f4103b02f6f8f87f98af0c6971ea88a66a0dae8.tar.gz
Quiet pylint
Diffstat (limited to 'coverage/config.py')
-rw-r--r--coverage/config.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/coverage/config.py b/coverage/config.py
index d32d9ae..f8e400c 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))