mirror of
https://github.com/platformio/platformio-core.git
synced 2025-07-29 17:47:14 +02:00
PyLint fixes
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user