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:
Guido van Rossum
2016-08-02 09:04:45 -07:00
committed by GitHub
parent e60c3de954
commit 47f2746526

View File

@@ -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): ...