remove EOL with backslash

This commit is contained in:
dongweiming 2015-07-01 14:31:12 +08:00
parent d7e17ed295
commit 3d984b80bd

View file

@ -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 = []