diff options
| author | Anthony Sottile <asottile@umich.edu> | 2021-03-29 20:07:13 -0700 |
|---|---|---|
| committer | Anthony Sottile <asottile@umich.edu> | 2021-03-30 17:37:13 -0700 |
| commit | edadccd8dcf5fc1de86116adb5f9f13ed1b68637 (patch) | |
| tree | 382ad5e83f6512ff157553c6a8c16b63569cec70 /src/flake8/plugins | |
| parent | e9a2a1018349f3eda9811bcadb63d4e2af05fd2f (diff) | |
| download | flake8-edadccd8dcf5fc1de86116adb5f9f13ed1b68637.tar.gz | |
audit + string joining
Diffstat (limited to 'src/flake8/plugins')
| -rw-r--r-- | src/flake8/plugins/pyflakes.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/flake8/plugins/pyflakes.py b/src/flake8/plugins/pyflakes.py index 8c68a01..4d1d7b8 100644 --- a/src/flake8/plugins/pyflakes.py +++ b/src/flake8/plugins/pyflakes.py @@ -145,7 +145,7 @@ class FlakesChecker(pyflakes.checker.Checker): if included_file == "": continue if not included_file.startswith((os.sep, "./", "~/")): - included_files.append("./" + included_file) + included_files.append(f"./{included_file}") else: included_files.append(included_file) cls.include_in_doctest = utils.normalize_paths(included_files) @@ -155,7 +155,7 @@ class FlakesChecker(pyflakes.checker.Checker): if excluded_file == "": continue if not excluded_file.startswith((os.sep, "./", "~/")): - excluded_files.append("./" + excluded_file) + excluded_files.append(f"./{excluded_file}") else: excluded_files.append(excluded_file) cls.exclude_from_doctest = utils.normalize_paths(excluded_files) |
