Update setup.py

Use list comprehension
This commit is contained in:
Alan Yee 2019-12-02 13:32:36 -08:00 committed by GitHub
parent 9b594f7fb2
commit 6a97476732
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,12 +45,8 @@ def installer():
installer() installer()
required = []
with open('requirements.txt') as fp: with open('requirements.txt') as fp:
for line in fp: required = [line.strip() for line in fp if line.strip() != ""]
line = line.strip()
if line != "":
required.append(line)
import pwnagotchi import pwnagotchi