summaryrefslogtreecommitdiff
path: root/coverage/config.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-04-22 16:34:30 -0400
committerNed Batchelder <ned@nedbatchelder.com>2017-04-22 16:34:30 -0400
commitdff7396f52d4540b6831ad8043d1aa4cc0136f15 (patch)
treefa7d64d04521fd432036b55628e7bf94fed8b90e /coverage/config.py
parent83085e033fd804685509636f9fa325141a8c8c06 (diff)
downloadpython-coveragepy-dff7396f52d4540b6831ad8043d1aa4cc0136f15.tar.gz
Update to pylint 1.7.1
Diffstat (limited to 'coverage/config.py')
-rw-r--r--coverage/config.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/coverage/config.py b/coverage/config.py
index 3651de3..3fa6449 100644
--- a/coverage/config.py
+++ b/coverage/config.py
@@ -21,12 +21,12 @@ class HandyConfigParser(configparser.RawConfigParser):
configparser.RawConfigParser.__init__(self)
self.section_prefix = section_prefix
- def read(self, filename):
+ def read(self, filenames):
"""Read a file name as UTF-8 configuration data."""
kwargs = {}
if sys.version_info >= (3, 2):
kwargs['encoding'] = "utf-8"
- return configparser.RawConfigParser.read(self, filename, **kwargs)
+ return configparser.RawConfigParser.read(self, filenames, **kwargs)
def has_option(self, section, option):
section = self.section_prefix + section
@@ -47,7 +47,7 @@ class HandyConfigParser(configparser.RawConfigParser):
d[opt] = self.get(section, opt)
return d
- def get(self, section, *args, **kwargs):
+ def get(self, section, *args, **kwargs): # pylint: disable=arguments-differ
"""Get a value, replacing environment variables also.
The arguments are the same as `RawConfigParser.get`, but in the found
@@ -415,7 +415,7 @@ def read_coverage_config(config_file, **kwargs):
config_file = True
specified_file = (config_file is not True)
if not specified_file:
- config_file = ".coveragerc" # pylint: disable=redefined-variable-type
+ config_file = ".coveragerc"
for fname, prefix in [(config_file, ""),
("setup.cfg", "coverage:"),