Fix signature for 2.7/binascii.crc32().

This commit is contained in:
Guido van Rossum
2016-01-27 11:42:47 -08:00
parent e40c3eb8c9
commit 14ffe2c13a

View File

@@ -1,7 +1,5 @@
"""Stubs for the binascii module."""
from typing import Optional
def a2b_base64(string: str) -> str: ...
def a2b_hex(hexstr: str) -> str: ...
def a2b_hqx(string: str) -> str: ...
@@ -12,7 +10,7 @@ def b2a_hex(data: str) -> str: ...
def b2a_hqx(data: str) -> str: ...
def b2a_qp(data: str, quotetabs: bool = ..., istext: bool = ..., header: bool = ...) -> str: ...
def b2a_uu(data: str) -> str: ...
def crc32(data: str, crc: Optional[int]) -> int: ...
def crc32(data: str, crc: int = None) -> int: ...
def crc_hqx(data: str, oldcrc: int) -> int: ...
def hexlify(data: str) -> str: ...
def rlecode_hqx(data: str) -> str: ...