PyLint fixes

This commit is contained in:
Ivan Kravets
2023-12-09 13:05:51 +02:00
parent f382aae66b
commit 0f554d2f31

View File

@ -223,5 +223,6 @@ def rmtree(path):
err=True,
)
kwargs = {"onexc" if sys.version_info >= (3, 12) else "onerror": _onexc}
return shutil.rmtree(path, **kwargs)
if sys.version_info < (3, 12):
return shutil.rmtree(path, onerror=_onexc)
return shutil.rmtree(path, onexc=_onexc) # pylint: disable=unexpected-keyword-arg