We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06c1e76 commit eb39c08Copy full SHA for eb39c08
nibabel/openers.py
@@ -78,6 +78,12 @@ def __init__(
78
mtime=mtime,
79
)
80
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
+
87
88
def _gzip_open(
89
filename: str,
0 commit comments