Blacken package_list.py

This commit is contained in:
Takumi Sueda 2022-05-22 00:46:39 +09:00
parent cd51beb066
commit 114224afa7

View File

@ -1,13 +1,15 @@
import requests import requests
res = requests.get('https://raw.githubusercontent.com/brain-hackers/buildbrain/master/os-brainux/setup_brainux.sh') res = requests.get(
'https://raw.githubusercontent.com/brain-hackers/buildbrain/master/os-brainux/setup_brainux.sh'
)
lines = res.text.split('\n') lines = res.text.split('\n')
found_packages = [] found_packages = []
backslashed = False backslashed = False
for (i,line) in enumerate(lines): for (i, line) in enumerate(lines):
if line.strip().startswith('apt install') or backslashed: if line.strip().startswith('apt install') or backslashed:
if backslashed: if backslashed:
packages = line.strip().split(' ') packages = line.strip().split(' ')