device-deps-regenerator: Use f-strings everywhere
Change-Id: I1798f05ba258fd1cf32ccfa524ffcdc314d05595
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
1. Use Python 3.2 or higher
|
||||
1. Use Python 3.6 or higher
|
||||
2. Run `pip3 install -r requirements.txt`
|
||||
3. Grab a new token from [here](https://github.com/settings/tokens) - no scopes needed, just a name. Put it in `token`
|
||||
4. run `python3 app.py` to generate the full lineage.dependencies mapping
|
||||
|
||||
@@ -91,7 +91,7 @@ with concurrent.futures.ThreadPoolExecutor(max_workers=args.jobs) as executor:
|
||||
other_repos.update(data[1])
|
||||
print(name, "=>", data[0])
|
||||
except Exception as e:
|
||||
print("%r generated an exception: %s" % (name, e))
|
||||
print(f"{name!r} generated an exception: {e}")
|
||||
traceback.print_exc()
|
||||
continue
|
||||
futures = {}
|
||||
@@ -119,7 +119,7 @@ with concurrent.futures.ThreadPoolExecutor(max_workers=args.jobs) as executor:
|
||||
other_repos.update(data[1])
|
||||
print(name, "=>", data[0])
|
||||
except Exception as e:
|
||||
print("%r generated an exception: %s" % (name, e))
|
||||
print(f"{name!r} generated an exception: {e}")
|
||||
traceback.print_exc()
|
||||
continue
|
||||
futures = {}
|
||||
|
||||
@@ -39,7 +39,7 @@ for repo in mapping:
|
||||
continue
|
||||
codename = repo.split("_", maxsplit=3)[-1]
|
||||
if codename in devices:
|
||||
print("warning: dupe: %s" % codename)
|
||||
print(f"warning: dupe: {codename}")
|
||||
devices[codename] = sorted(
|
||||
list(set(simplify_reverse_deps({"repo": repo}, codename)))
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user