mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-04 20:26:53 +00:00
pyflakes: Change to normalize_path() for filename normalization
It's unnecessary to call the `normalize_paths()` function because it is intended for dealing with multiple paths to normalize. Given that `normalize_paths()` utilizes `normalize_path()`, just call `normalize_path()` directly.
This commit is contained in:
parent
d6bf438e44
commit
24e8b8163c
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ class FlakesChecker(pyflakes.checker.Checker):
|
|||
|
||||
def __init__(self, tree, file_tokens, filename):
|
||||
"""Initialize the PyFlakes plugin with an AST tree and filename."""
|
||||
filename = utils.normalize_paths(filename)[0]
|
||||
filename = utils.normalize_path(filename)
|
||||
with_doctest = self.with_doctest
|
||||
included_by = [
|
||||
include
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue