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 f15ad1d commit 7b7d54fCopy full SHA for 7b7d54f
src/xz/file.py
@@ -1,5 +1,6 @@
1
from io import SEEK_CUR, SEEK_END
2
import os
3
+import sys
4
from typing import BinaryIO, List, Optional, cast
5
import warnings
6
@@ -144,6 +145,10 @@ def close(self) -> None:
144
145
finally:
146
if self._close_fileobj:
147
self.fileobj.close() # self.fileobj exists at this point
148
+ if sys.version_info < (3, 10): # pragma: no cover
149
+ # fix coverage issue on some Python versions
150
+ # see https://github.com/nedbat/coveragepy/issues/1480
151
+ pass
152
153
@property
154
def stream_boundaries(self) -> List[int]:
0 commit comments