Bug 1715287 - [lint] Enable remaining pyupgrade rules and lint tree r=linter-reviewers,webdriver-reviewers,translations-reviewers,whimboo,sylvestre

Differential Revision: https://phabricator.services.mozilla.com/D245320
This commit is contained in:
Alex Hochheiden
2025-04-13 17:48:23 +00:00
parent 0bbbbc094d
commit 9e91a1f021
779 changed files with 2935 additions and 4119 deletions

View File

@@ -476,9 +476,7 @@ def _create_state_dir():
if state_dir:
if not os.path.exists(state_dir):
print(
"Creating global state directory from environment variable: {}".format(
state_dir
)
f"Creating global state directory from environment variable: {state_dir}"
)
else:
state_dir = os.path.expanduser("~/.mozbuild")
@@ -486,7 +484,7 @@ def _create_state_dir():
if not os.environ.get("MOZ_AUTOMATION"):
print(STATE_DIR_FIRST_RUN.format(state_dir))
print("Creating default state directory: {}".format(state_dir))
print(f"Creating default state directory: {state_dir}")
os.makedirs(state_dir, mode=0o770, exist_ok=True)
return state_dir