add ConfigParser.readfp in Python 3 (#2123)

https://docs.python.org/3/library/configparser.html#configparser.ConfigParser.readfp

Fixes #2112
This commit is contained in:
Jelle Zijlstra
2018-06-11 14:10:52 -07:00
committed by Guido van Rossum
parent 53fde2ddf7
commit 7abcd0f71f

View File

@@ -93,6 +93,8 @@ class RawConfigParser(_parser):
def read(self, filenames: Union[_Path, Iterable[_Path]],
encoding: Optional[str] = ...) -> List[str]: ...
def readfp(self, fp: IO[str], filename: Optional[str] = ...) -> None: ...
def read_file(self, f: Iterable[str], source: Optional[str] = ...) -> None: ...
def read_string(self, string: str, source: str = ...) -> None: ...