diff options
Diffstat (limited to 'coverage')
-rw-r--r-- | coverage/backward.py | 2 | ||||
-rw-r--r-- | coverage/cmdline.py | 2 | ||||
-rw-r--r-- | coverage/config.py | 8 | ||||
-rw-r--r-- | coverage/control.py | 1 | ||||
-rw-r--r-- | coverage/parser.py | 1 |
5 files changed, 6 insertions, 8 deletions
diff --git a/coverage/backward.py b/coverage/backward.py index 8d2218d2..62ca495f 100644 --- a/coverage/backward.py +++ b/coverage/backward.py @@ -48,7 +48,7 @@ except ImportError: try: range = xrange # pylint: disable=redefined-builtin except NameError: - range = range # pylint: disable=redefined-variable-type + range = range # shlex.quote is new, but there's an undocumented implementation in "pipes", # who knew!? diff --git a/coverage/cmdline.py b/coverage/cmdline.py index 9c908b14..63e4eb1f 100644 --- a/coverage/cmdline.py +++ b/coverage/cmdline.py @@ -752,7 +752,7 @@ def main(argv=None): # An exception was caught while running the product code. The # sys.exc_info() return tuple is packed into an ExceptionDuringRun # exception. - traceback.print_exception(*err.args) + traceback.print_exception(*err.args) # pylint: disable=no-value-for-parameter status = ERR except BaseCoverageException as err: # A controlled error inside coverage.py: print the message to the user. 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:"), diff --git a/coverage/control.py b/coverage/control.py index aeca9f71..fb033610 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -959,7 +959,6 @@ class Coverage(object): ) if file_reporter == "python": - # pylint: disable=redefined-variable-type file_reporter = PythonFileReporter(morf, self) return file_reporter diff --git a/coverage/parser.py b/coverage/parser.py index ca6745f9..590eacee 100644 --- a/coverage/parser.py +++ b/coverage/parser.py @@ -106,7 +106,6 @@ class PythonParser(object): """ combined = join_regex(regexes) if env.PY2: - # pylint: disable=redefined-variable-type combined = combined.decode("utf8") regex_c = re.compile(combined) matches = set() |