diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2017-05-21 01:34:34 +0000 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2017-05-21 01:34:34 +0000 |
| commit | 24129d846cc98d45347116091a65cd7a1b0040f9 (patch) | |
| tree | 0c6852ed45e0c4f7bd32b31dd64b903066b96490 /src/flake8 | |
| parent | deb4936f5ddfd0a9db22791af10c97754b475685 (diff) | |
| parent | 25566468a22b348a9d1e0abd9395703658728402 (diff) | |
| download | flake8-24129d846cc98d45347116091a65cd7a1b0040f9.tar.gz | |
Merge branch 'bug/330' into 'master'
Filter out empty ignore/select codes
Closes #330
See merge request !184
Diffstat (limited to 'src/flake8')
| -rw-r--r-- | src/flake8/utils.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/flake8/utils.py b/src/flake8/utils.py index 4eb6537..a4c67ce 100644 --- a/src/flake8/utils.py +++ b/src/flake8/utils.py @@ -29,7 +29,8 @@ def parse_comma_separated_list(value): if not isinstance(value, (list, tuple)): value = value.split(',') - return [item.strip() for item in value] + item_gen = (item.strip() for item in value) + return [item for item in item_gen if item] def normalize_paths(paths, parent=os.curdir): |
