Skip to content

Commit 486d7c6

Browse files
DimitriPapadopoulosFrancescAlted
authored andcommitted
IOError → OSError
In Python ≥ 3.3, IOError is an alias of OSError: https://docs.python.org/3/library/exceptions.html#OSError Suggested by pyupgrade.
1 parent 7ea202e commit 486d7c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bench/ndarray/transcode_data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
dir_path = Path(dir_path)
7070
if not dir_path.is_dir():
71-
raise IOError(f"{dir_path} must be the directory with datasets")
71+
raise OSError(f"{dir_path} must be the directory with datasets")
7272

7373
for fname in dir_path.iterdir():
7474
path = str(fname)

0 commit comments

Comments
 (0)