Add undocumented but used method LWPCookieJar.as_lwp_str. (#3041)

The method is defined here:
e36ed475ea/Lib/http/cookiejar.py (L1864)
This commit is contained in:
Rebecca Chen
2019-06-08 07:06:14 -07:00
committed by Jelle Zijlstra
parent 61eb99664b
commit e7184d6dfc
2 changed files with 5 additions and 2 deletions

View File

@@ -105,6 +105,8 @@ class FileCookieJar(CookieJar):
def load(self, filename: Optional[Any] = ..., ignore_discard: bool = ..., ignore_expires: bool = ...): ...
def revert(self, filename: Optional[Any] = ..., ignore_discard: bool = ..., ignore_expires: bool = ...): ...
class LWPCookieJar(FileCookieJar):
def as_lwp_str(self, ignore_discard: bool = ..., ignore_expires: bool = ...) -> str: ... # undocumented
MozillaCookieJar = FileCookieJar
LWPCookieJar = FileCookieJar
def lwp_cookie_str(cookie: Cookie) -> str: ...

View File

@@ -37,8 +37,9 @@ class FileCookieJar(CookieJar):
ignore_expires: bool = ...) -> None: ...
class MozillaCookieJar(FileCookieJar): ...
class LWPCookieJar(FileCookieJar): ...
class LWPCookieJar(FileCookieJar):
def as_lwp_str(self, ignore_discard: bool = ..., ignore_expires: bool = ...) -> str: ... # undocumented
class CookiePolicy:
netscape: bool