Skip to content

Commit

Permalink
Use a list comprehension instead of filter for listing requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
alisaifee committed Oct 5, 2015
1 parent 69b4ddb commit 11f0b3b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@
import os

this_dir = os.path.abspath(os.path.dirname(__file__))
REQUIREMENTS = filter(None, open(
os.path.join(this_dir, 'requirements', 'main.txt')).read().splitlines())

REQUIREMENTS = [
k for k in open(
os.path.join(this_dir, 'requirements', 'main.txt')
).read().splitlines() if k.strip()
]
import versioneer

versioneer.versionfile_source = "limits/_version.py"
Expand Down

0 comments on commit 11f0b3b

Please sign in to comment.