Updated stub for 2.7 httplib; new stubs for 2.7 mimetools, rfc822.

This commit is contained in:
Guido van Rossum
2015-11-23 10:29:38 -08:00
parent 7b75dec702
commit a0deb69be9
3 changed files with 232 additions and 1 deletions

31
stdlib/2.7/mimetools.pyi Normal file
View File

@@ -0,0 +1,31 @@
# Stubs for mimetools (Python 2)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from typing import Any
import rfc822
class Message(rfc822.Message):
encodingheader = ... # type: Any
typeheader = ... # type: Any
def __init__(self, fp, seekable=1): ...
plisttext = ... # type: Any
type = ... # type: Any
maintype = ... # type: Any
subtype = ... # type: Any
def parsetype(self): ...
plist = ... # type: Any
def parseplist(self): ...
def getplist(self): ...
def getparam(self, name): ...
def getparamnames(self): ...
def getencoding(self): ...
def gettype(self): ...
def getmaintype(self): ...
def getsubtype(self): ...
def choose_boundary(): ...
def decode(input, output, encoding): ...
def encode(input, output, encoding): ...
def copyliteral(input, output): ...
def copybinary(input, output): ...