Skip to content

Commit 46e3954

Browse files
committed
Lint
1 parent 7df5859 commit 46e3954

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

bench_runner/git.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import contextlib
66
import datetime
77
from pathlib import Path
8-
import shutil
98
import subprocess
109
import re
1110

bench_runner/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,13 @@ def onexc(func, path, exc):
123123
else:
124124

125125
def smart_rmtree(path: PathLike) -> None:
126-
def onerror(func, path, error):
126+
def onerror(func, path, exc_info):
127127
# Is the error an access error?
128128
if not os.access(path, os.W_OK):
129129
os.chmod(path, stat.S_IWUSR)
130130
func(path)
131131
else:
132-
raise exc[1]
132+
raise exc_info[1]
133133

134134
shutil.rmtree(path, onerror=onerror)
135135

0 commit comments

Comments
 (0)