From b7be64538aa480fce641349d3053e9a84862d571 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Wed, 22 Mar 2023 17:12:30 -0400 Subject: style: double quotes --- coverage/files.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'coverage/files.py') diff --git a/coverage/files.py b/coverage/files.py index 962a9d10..2a117734 100644 --- a/coverage/files.py +++ b/coverage/files.py @@ -163,7 +163,7 @@ def zip_location(filename: str) -> Optional[Tuple[str, str]]: name is in the zipfile. """ - for ext in ['.zip', '.whl', '.egg', '.pex']: + for ext in [".zip", ".whl", ".egg", ".pex"]: zipbase, extension, inner = filename.partition(ext + sep(filename)) if extension: zipfile = zipbase + ext @@ -273,7 +273,7 @@ class ModuleMatcher: if module_name.startswith(m): if module_name == m: return True - if module_name[len(m)] == '.': + if module_name[len(m)] == ".": # This is a module in the package return True @@ -433,7 +433,7 @@ class PathAliases: # The pattern is meant to match a file path. Let's make it absolute # unless it already is, or is meant to match any prefix. if not self.relative: - if not pattern.startswith('*') and not isabs_anywhere(pattern + pattern_sep): + if not pattern.startswith("*") and not isabs_anywhere(pattern + pattern_sep): pattern = abs_file(pattern) if not pattern.endswith(pattern_sep): pattern += pattern_sep -- cgit v1.2.1