mirror of https://github.com/pypa/pip
Removed if line:, etc. for shorter cleaner code
As per @xavfernandez suggested edit this is cleaner.
This commit is contained in:
parent
9db1be996e
commit
d4b77a0875
|
@ -108,10 +108,7 @@ def search_packages_info(query):
|
|||
# It looks like FeedParser cannot deal with repeated headers
|
||||
classifiers = []
|
||||
for line in metadata.splitlines():
|
||||
if not line:
|
||||
pass # The Problem SJB
|
||||
# Classifier: License :: OSI Approved :: MIT License
|
||||
elif line.startswith('Classifier: '):
|
||||
if line.startswith('Classifier: '):
|
||||
classifiers.append(line[len('Classifier: '):])
|
||||
package['classifiers'] = classifiers
|
||||
|
||||
|
|
Loading…
Reference in New Issue