Author brett.cannon
Recipients brett.cannon, paul.moore
Date 2015-03-13.14:50:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1426258210.85.0.503105299924.issue23657@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2015-03-13 14:50:10brett.cannonsetrecipients: + brett.cannon, paul.moore
2015-03-13 14:50:10brett.cannonsetmessageid: <1426258210.85.0.503105299924.issue23657@psf.upfronthosting.co.za>
2015-03-13 14:50:10brett.cannonlinkissue23657 messages
2015-03-13 14:50:10brett.cannoncreate