Message238030
As it stand, zipapp's code checks for str and then otherwise assumes an object is a file-like object. It might work out better to do some duck typing and simply check if an object has 'read' and 'readline' attributes then it's a file-like object and otherwise that it's a path.
Doing this would then potentially make it easier to use pathlib.Path through the module rather than the os module. |
|
Date |
User |
Action |
Args |
2015-03-13 14:50:10 | brett.cannon | set | recipients:
+ brett.cannon, paul.moore |
2015-03-13 14:50:10 | brett.cannon | set | messageid: <1426258210.85.0.503105299924.issue23657@psf.upfronthosting.co.za> |
2015-03-13 14:50:10 | brett.cannon | link | issue23657 messages |
2015-03-13 14:50:10 | brett.cannon | create | |
|