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 0601add commit 7024189Copy full SHA for 7024189
Lib/test/test_pathlib/support/zip_path.py
@@ -231,10 +231,13 @@ def create_hierarchy(self, p):
231
self.create_link(p.joinpath('brokenLinkLoop'), 'brokenLinkLoop')
232
233
def readtext(self, p):
234
- return p.zip_file.read(str(p)).decode()
+ with p.zip_file.open(str(p), 'r') as f:
235
+ f = io.TextIOWrapper(f)
236
+ return f.read()
237
238
def readbytes(self, p):
- return p.zip_file.read(str(p))
239
240
241
242
readlink = readtext
243
0 commit comments