forked from Mirror/pmbootstrap
Use simplified Python 3.8 syntax (MR 2327)
This commit was generated with: ruff check --fix --extend-select=UP .
This commit is contained in:
parent
fa2a7c502d
commit
f3f392ef66
13 changed files with 51 additions and 60 deletions
|
@ -18,7 +18,7 @@ def arm_big_little_first_group_ncpus() -> Optional[int]:
|
|||
counter = 0
|
||||
part = None
|
||||
|
||||
with open("/proc/cpuinfo", "r") as cpuinfo:
|
||||
with open("/proc/cpuinfo") as cpuinfo:
|
||||
for line in cpuinfo:
|
||||
match = pattern.match(line)
|
||||
if match:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue