mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Update setup.py
Use list comprehension
This commit is contained in:
6
setup.py
6
setup.py
@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user