Skip to content

Commit

Permalink
MNT: Remove 3.12rc1 workaround for python/cpython#180111
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies committed Dec 11, 2023
1 parent b77f166 commit bd8d118
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions nibabel/openers.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,6 @@ def __init__(
mtime=mtime,
)

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


def _gzip_open(
filename: str,
Expand Down

0 comments on commit bd8d118

Please sign in to comment.