Removed if line:, etc. for shorter cleaner code

As per @xavfernandez suggested edit this is cleaner.
This commit is contained in:
Steve (Gadget) Barnes 2016-10-27 11:36:46 +01:00 committed by GitHub
parent 9db1be996e
commit d4b77a0875
1 changed files with 1 additions and 4 deletions

View File

@ -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