mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-25 19:17:16 +08:00
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:
committed by
Matthias Kramm
parent
0aa7138c4e
commit
6f6fa428ce
@@ -14,6 +14,7 @@ if sys.version_info >= (3,):
|
||||
BadZipfile = BadZipFile
|
||||
else:
|
||||
class BadZipfile(Exception): ...
|
||||
error = BadZipfile
|
||||
|
||||
class LargeZipFile(Exception): ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user