[issue33993] zipfile module weird behavior when used with zipinfo

2018-06-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Use: rel_name = "tmp/test.md" -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker _

[issue33993] zipfile module weird behavior when used with zipinfo

2018-06-28 Thread Micheal Gardner
New submission from Micheal Gardner : when i want to zip a empty folder, i use following code ``` import zipfile zfile = zipfile.ZipFile("tmp.zip",'w') zif = zipfile.ZipInfo("tmp/") zfile.writestr(zif,"") zfile.close() ``` but in this case, things become weird. ``` # 先造一个测试文件夹 mkdir /tmp/tes

[issue33993] zipfile module weird behavior when used with zipinfo

2018-06-28 Thread Micheal Gardner
Change by Micheal Gardner : -- components: Library (Lib) nosy: Micheal Gardner priority: normal severity: normal status: open title: zipfile module weird behavior when used with zipinfo type: behavior versions: Python 2.7, Python 3.6 ___ Python track