Skip to content

Commit 0f554d2

Browse files
committed
PyLint fixes
1 parent f382aae commit 0f554d2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

platformio/fs.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,5 +223,6 @@ def _onexc(func, path, _):
223223
err=True,
224224
)
225225

226-
kwargs = {"onexc" if sys.version_info >= (3, 12) else "onerror": _onexc}
227-
return shutil.rmtree(path, **kwargs)
226+
if sys.version_info < (3, 12):
227+
return shutil.rmtree(path, onerror=_onexc)
228+
return shutil.rmtree(path, onexc=_onexc) # pylint: disable=unexpected-keyword-arg

0 commit comments

Comments
 (0)