Commit b1b837df authored by Jason R. Coombs's avatar Jason R. Coombs

Use filter to filter blank lines

parent b38d71f2
...@@ -127,7 +127,9 @@ def test_maintainer_author(name, attrs, tmpdir): ...@@ -127,7 +127,9 @@ def test_maintainer_author(name, attrs, tmpdir):
with io.open(str(fn.join('PKG-INFO')), 'r', encoding='utf-8') as f: with io.open(str(fn.join('PKG-INFO')), 'r', encoding='utf-8') as f:
pkg_lines = f.readlines() pkg_lines = f.readlines()
pkg_lines = [_ for _ in pkg_lines if _] # Drop blank lines # Drop blank lines
pkg_lines = list(filter(None, pkg_lines))
pkg_lines_set = set(pkg_lines) pkg_lines_set = set(pkg_lines)
# Duplicate lines should not be generated # Duplicate lines should not be generated
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment