Fix recent python linting errors

- Remove unneeded imports in 'fuscia-test-runner.py'
- Add explicit stacklevel to 'x.py'
- Fix mutable types as default args in `bootstrap.py` and  `bootstrap_test.py`
This commit is contained in:
Trevor Gross 2023-06-22 01:59:24 -04:00
parent efc49e4dfa
commit 9df0f5d433
4 changed files with 20 additions and 11 deletions

2
x.py
View file

@ -40,7 +40,7 @@ if __name__ == '__main__':
This message can be suppressed by setting `RUST_IGNORE_OLD_PYTHON=1`
""".format(major, minor))
warnings.warn(msg)
warnings.warn(msg, stacklevel=1)
rust_dir = os.path.dirname(os.path.abspath(__file__))
# For the import below, have Python search in src/bootstrap first.