ostuild: fix new pylint error with latest pylint version
The `shutil.rmtree(onerror=...)` kwarg got deprecated with py3.12. We still need to support older version of python all the way back to 3.6 so just ignore this pylint error for a while.
This commit is contained in:
parent
26fa3aec8c
commit
7b201db5a7
1 changed files with 2 additions and 1 deletions
|
|
@ -106,4 +106,5 @@ def rmtree(path: str):
|
|||
else:
|
||||
raise e
|
||||
|
||||
shutil.rmtree(path, onerror=on_error)
|
||||
# "onerror" can be replaced with "onexc" once we move to python 3.12
|
||||
shutil.rmtree(path, onerror=on_error) # pylint: disable=deprecated-argument
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue