mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-14 18:27:51 +08:00
Fix the definitions of BadZip{f,F}ile. (#432)
In 2.7, only BadZipfile exists. In 3.x, both exist.
This commit is contained in:
1 parent
e60c3de954
commit
47f2746526
1 file changed
+3
-2
@@ -9,10 +9,11 @@ _SZI = Union[str, ZipInfo]
|
||||
_DT = Tuple[int, int, int, int, int, int]
|
||||
|
||||
|
||||
class BadZipFile(Exception): ...
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
class BadZipFile(Exception): ...
|
||||
BadZipfile = BadZipFile
|
||||
else:
|
||||
class BadZipfile(Exception): ...
|
||||
|
||||
class LargeZipFile(Exception): ...
|
||||
|
||||
|
||||
Reference in new issue
Block a user