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:
parent
efc49e4dfa
commit
9df0f5d433
4 changed files with 20 additions and 11 deletions
2
x.py
2
x.py
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue