mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 05:26:53 +00:00
remove EOL with backslash
This commit is contained in:
parent
d7e17ed295
commit
3d984b80bd
1 changed files with 2 additions and 1 deletions
|
|
@ -115,7 +115,8 @@ def get_style_guide(**kwargs):
|
|||
_disable_extensions(kwargs['parser'], options)
|
||||
|
||||
if options.exclude and not isinstance(options.exclude, list):
|
||||
options.exclude = pep8.normalize_paths(options.exclude)
|
||||
options.exclude = [p.strip('\\\r\n')
|
||||
for p in pep8.normalize_paths(options.exclude)]
|
||||
elif not options.exclude:
|
||||
options.exclude = []
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue