From 937150846d6abc0c7cec6ab4ab3b3c8b4f0d7a98 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Sun, 3 Dec 2023 14:50:37 -0500 Subject: [PATCH] MNT: Remove 3.12rc1 workaround for python/cpython#180111 --- nibabel/openers.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/nibabel/openers.py b/nibabel/openers.py index 9a024680a..90c7774d1 100644 --- a/nibabel/openers.py +++ b/nibabel/openers.py @@ -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,