Skip to content

Commit

Permalink
Update setup.py
Browse files Browse the repository at this point in the history
Use list comprehension
  • Loading branch information
alanyee authored Dec 2, 2019
1 parent 9b594f7 commit 6a97476
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,8 @@ def installer():

installer()

required = []
with open('requirements.txt') as fp:
for line in fp:
line = line.strip()
if line != "":
required.append(line)
required = [line.strip() for line in fp if line.strip() != ""]

import pwnagotchi

Expand Down

0 comments on commit 6a97476

Please sign in to comment.