diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-04-22 16:34:30 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-04-22 16:34:30 -0400 |
commit | c3babc0ab961982981e08e5b302f7f54039c7570 (patch) | |
tree | 11a30fc815f6faa877930db3998c9a74b6f1db50 /coverage/config.py | |
parent | 9bf5189621f0805b11deb6cf08fe749e746fdf55 (diff) | |
download | python-coveragepy-git-c3babc0ab961982981e08e5b302f7f54039c7570.tar.gz |
Update to pylint 1.7.1
Diffstat (limited to 'coverage/config.py')
-rw-r--r-- | coverage/config.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/coverage/config.py b/coverage/config.py index 3651de33..3fa64495 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:"), |