diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2018-03-18 10:00:57 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2018-03-18 10:00:57 -0400 |
commit | b1b837df6846cc64bdfec94408fc2276fbfe93ab (patch) | |
tree | b9298d76209907293c61dc198940dcce1f40c7d0 /setuptools/tests/test_dist.py | |
parent | b38d71f2935ce069f5f1f6b2ccaa7b99c838db67 (diff) | |
download | external_python_setuptools-b1b837df6846cc64bdfec94408fc2276fbfe93ab.tar.gz external_python_setuptools-b1b837df6846cc64bdfec94408fc2276fbfe93ab.tar.bz2 external_python_setuptools-b1b837df6846cc64bdfec94408fc2276fbfe93ab.zip |
Use filter to filter blank lines
Diffstat (limited to 'setuptools/tests/test_dist.py')
-rw-r--r-- | setuptools/tests/test_dist.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/tests/test_dist.py b/setuptools/tests/test_dist.py index 8d5c9e38..0279318b 100644 --- a/setuptools/tests/test_dist.py +++ b/setuptools/tests/test_dist.py @@ -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: 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) # Duplicate lines should not be generated |