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:
Michael Vogt 2023-11-15 10:38:21 +01:00 committed by Simon de Vlieger
parent 26fa3aec8c
commit 7b201db5a7

View file

@ -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