summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2019-07-08 17:04:02 +0000
committerAnthony Sottile <asottile@umich.edu>2019-07-08 17:04:02 +0000
commitf41e87bf375e5b7b6452f6ec353543fde5a3d653 (patch)
tree7d7707715c220eafa9e78a7a1df9bbb044cf33f5 /src
parentd6bf438e44152be00c840a8c3cf9a73bc2503a29 (diff)
parent24e8b8163c27c9b5f9785e064f72c49232a98ac3 (diff)
downloadflake8-f41e87bf375e5b7b6452f6ec353543fde5a3d653.tar.gz
Merge branch 'pyflake-normalize-path' into 'master'
pyflakes: Change to `normalize_path()` for filename normalization See merge request pycqa/flake8!327
Diffstat (limited to 'src')
-rw-r--r--src/flake8/plugins/pyflakes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/flake8/plugins/pyflakes.py b/src/flake8/plugins/pyflakes.py
index 9be0c81..018d1c9 100644
--- a/src/flake8/plugins/pyflakes.py
+++ b/src/flake8/plugins/pyflakes.py
@@ -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