This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author ezio.melotti
Recipients alanmcintyre, ezio.melotti, serhiy.storchaka, twouters, 張伯誠
Date 2016-03-18.18:59:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1458327555.05.0.187280421395.issue26283@psf.upfronthosting.co.za>
In-reply-to
Content
I don't think this is a bug.  The ZIP format specification requires the use of forward slashes[0]:

   4.4.17 file name: (Variable)

       4.4.17.1 The name of the file, with optional relative path.
       The path stored MUST not contain a drive or
       device letter, or a leading slash.  All slashes
       MUST be forward slashes '/' as opposed to
       backwards slashes '\' for compatibility with Amiga
       and UNIX file systems etc.

os.path.join() will use different path separators depending on the system.  If you don't want to hardcode the slashes in a string literal, you can simply use '/'.join(...) instead of os.path.join().

[0]: https://pkware.cachefly.net/webdocs/casestudies/APPNOTE.TXT
History
Date User Action Args
2016-03-18 18:59:15ezio.melottisetrecipients: + ezio.melotti, twouters, alanmcintyre, serhiy.storchaka, 張伯誠
2016-03-18 18:59:15ezio.melottisetmessageid: <1458327555.05.0.187280421395.issue26283@psf.upfronthosting.co.za>
2016-03-18 18:59:14ezio.melottilinkissue26283 messages
2016-03-18 18:59:14ezio.melotticreate