Message300944
on Windows, assuming the file 'foo.zip' exists, the following would cause an
assertion failure in Modules/zipimport.c in zipimport_zipimporter_get_data_impl():
import zipimport
class BadStr(str):
def replace(self, old, new):
return 42
zipimport.zipimporter('foo.zip').get_data(BadStr('bar'))
this is because zipimport_zipimporter_get_data_impl() assumes that
BadStr('bar').replace('/', '\\') is a string. |
|
Date |
User |
Action |
Args |
2017-08-28 08:44:26 | Oren Milman | set | recipients:
+ Oren Milman |
2017-08-28 08:44:26 | Oren Milman | set | messageid: <1503909866.45.0.325412617055.issue31291@psf.upfronthosting.co.za> |
2017-08-28 08:44:26 | Oren Milman | link | issue31291 messages |
2017-08-28 08:44:26 | Oren Milman | create | |
|