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.
This commit is contained in:
Jelle Zijlstra
2017-05-23 12:44:35 -07:00
committed by Matthias Kramm
parent 0aa7138c4e
commit 6f6fa428ce
3 changed files with 10 additions and 10 deletions

View File

@@ -14,6 +14,7 @@ if sys.version_info >= (3,):
BadZipfile = BadZipFile
else:
class BadZipfile(Exception): ...
error = BadZipfile
class LargeZipFile(Exception): ...