Move 2.7 to 2 (#635)

Closes #579.
This commit is contained in:
Guido van Rossum
2016-10-26 16:24:49 -07:00
committed by GitHub
parent d60bea14f6
commit cb97bb54c0
338 changed files with 0 additions and 0 deletions

42
stdlib/2/zlib.pyi Normal file
View File

@@ -0,0 +1,42 @@
# Stubs for zlib (Python 2.7)
DEFLATED = ... # type: int
DEF_MEM_LEVEL = ... # type: int
MAX_WBITS = ... # type: int
ZLIB_VERSION = ... # type: str
Z_BEST_COMPRESSION = ... # type: int
Z_BEST_SPEED = ... # type: int
Z_DEFAULT_COMPRESSION = ... # type: int
Z_DEFAULT_STRATEGY = ... # type: int
Z_FILTERED = ... # type: int
Z_FINISH = ... # type: int
Z_FULL_FLUSH = ... # type: int
Z_HUFFMAN_ONLY = ... # type: int
Z_NO_FLUSH = ... # type: int
Z_SYNC_FLUSH = ... # type: int
class error(Exception): ...
class Compress:
def compress(self, data: str) -> str: ...
def flush(self) -> str: ...
def copy(self) -> "Compress": ...
class Decompress:
unused_data = ... # type: str
unconsumed_tail = ... # type: str
def decompress(self, data: str, max_length: int = ...) -> str: ...
def flush(self) -> str: ...
def copy(self) -> "Decompress": ...
def adler32(data: str, value: int = ...) -> int: ...
def compress(data: str, level: int = ...) -> str: ...
def compressobj(level: int = ..., method: int = ..., wbits: int = ...,
memlevel: int = ..., strategy: int = ...) -> Compress: ...
def crc32(data: str, value: int = ...) -> int: ...
def decompress(data: str, wbits: int = ..., bufsize: int = ...) -> str: ...
def decompressobj(wbits: int = ...) -> Decompress: ...