Jelle Zijlstra
37aba00fe8
fix using ZipFile as a ContextManager ( #2043 )
2018-04-12 12:29:22 -07:00
Josh Holland
162d884d32
Make zipfile accept Text, not str ( #1826 )
2018-03-17 22:33:29 -07:00
Salvo 'LtWorf' Tomaselli
c8c4a8f208
Added filelist attribute to ZipFile ( #1798 )
2018-01-02 10:18:03 -08:00
Jelle Zijlstra
6f6fa428ce
fix some issues found by stubcheck ( #1303 )
...
- ThreadError exists (undocumented) on Python 3. It's an alias for _thread.error,
but making it a separate exception seems fine.
- zipfile.error is an alias for BadZipFile on both Python versions.
- zlib.Compress and Decompress are not actually accessible at runtime.
2017-05-23 12:44:35 -07:00
Lukasz Langa
5f416fae64
Add missing List imports.
2016-12-21 01:06:52 -08:00
David Percy
9fa6c994a3
Fix zipfile getinfo return type ( #678 )
2016-11-10 11:08:57 -08:00
Guido van Rossum
47f2746526
Fix the definitions of BadZip{f,F}ile. ( #432 )
...
In 2.7, only BadZipfile exists. In 3.x, both exist.
2016-08-02 09:04:45 -07:00
Guido van Rossum
39325bf159
Mypy now supports sys.platform and sys.version_info checks ( #410 )
2016-07-27 13:25:29 -07:00
alvarocaceres
f7b35bc8be
Remove line continuations to help pytype parse ( #390 )
2016-07-22 10:55:42 -07:00
Valérian Rousset
8ef221c162
add zipfile for py2 ( #345 )
2016-07-15 05:55:20 -07:00