From 3d984b80bd9ef8ce153cacc6d111375fef17ae31 Mon Sep 17 00:00:00 2001 From: dongweiming Date: Wed, 1 Jul 2015 14:31:12 +0800 Subject: [PATCH] remove EOL with backslash --- flake8/engine.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flake8/engine.py b/flake8/engine.py index d18cc2c..20bc3e5 100644 --- a/flake8/engine.py +++ b/flake8/engine.py @@ -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 = []