Skip to content

Commit 9371508

Browse files
committed
MNT: Remove 3.12rc1 workaround for python/cpython#180111
1 parent ff012bb commit 9371508

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Diff for: nibabel/openers.py

-6
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,6 @@ def __init__(
7878
mtime=mtime,
7979
)
8080

81-
def seek(self, pos: int, whence: int = 0, /) -> int:
82-
# Work around bug (gh-180111) in Python 3.12rc1, where seeking without
83-
# flushing can cause write of excess null bytes
84-
self.flush()
85-
return super().seek(pos, whence)
86-
8781

8882
def _gzip_open(
8983
filename: str,

0 commit comments

Comments
 (0)