Remove Python 3.4 support (#3147)

Closes #3123
This commit is contained in:
Sebastian Rittau
2019-07-27 10:58:21 +02:00
committed by GitHub
parent 4697adcb1a
commit 9ccf9356bf
55 changed files with 988 additions and 1266 deletions

View File

@@ -63,8 +63,7 @@ class Message:
def get_content_charset(self, failobj: _T = ...) -> Union[_T, str]: ...
def get_charsets(self, failobj: _T = ...) -> Union[_T, List[str]]: ...
def walk(self) -> Generator[Message, None, None]: ...
if sys.version_info >= (3, 5):
def get_content_disposition(self) -> Optional[str]: ...
def get_content_disposition(self) -> Optional[str]: ...
def as_string(self, unixfrom: bool = ..., maxheaderlen: int = ...,
policy: Optional[Policy] = ...) -> str: ...
def as_bytes(self, unixfrom: bool = ...,

View File

@@ -13,8 +13,7 @@ class Policy:
linesep: str
cte_type: str
raise_on_defect: bool
if sys.version_info >= (3, 5):
mange_from: bool
mange_from: bool
def __init__(self, **kw: Any) -> None: ...
def clone(self, **kw: Any) -> Policy: ...
def handle_defect(self, obj: Message,