diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/http/cookiejar.py | 6 | ||||
-rw-r--r-- | Lib/imaplib.py | 2 | ||||
-rwxr-xr-x | Lib/pydoc.py | 11 |
3 files changed, 11 insertions, 8 deletions
diff --git a/Lib/http/cookiejar.py b/Lib/http/cookiejar.py index 2604817..9b0ee80 100644 --- a/Lib/http/cookiejar.py +++ b/Lib/http/cookiejar.py @@ -1964,9 +1964,9 @@ class MozillaCookieJar(FileCookieJar): """ magic_re = re.compile("#( Netscape)? HTTP Cookie File") header = """\ - # Netscape HTTP Cookie File - # http://www.netscape.com/newsref/std/cookie_spec.html - # This is a generated file! Do not edit. +# Netscape HTTP Cookie File +# http://www.netscape.com/newsref/std/cookie_spec.html +# This is a generated file! Do not edit. """ diff --git a/Lib/imaplib.py b/Lib/imaplib.py index ec47657..2699fd4 100644 --- a/Lib/imaplib.py +++ b/Lib/imaplib.py @@ -765,7 +765,7 @@ class IMAP4: ', '.join(Commands[command]))) name = 'UID' typ, dat = self._simple_command(name, command, *args) - if command in ('SEARCH', 'SORT'): + if command in ('SEARCH', 'SORT', 'THREAD'): name = command else: name = 'FETCH' diff --git a/Lib/pydoc.py b/Lib/pydoc.py index 3f2a5d8..e1e6d80 100755 --- a/Lib/pydoc.py +++ b/Lib/pydoc.py @@ -1694,9 +1694,12 @@ class Helper: 'CONTEXTMANAGERS': ('context-managers', 'with'), } - def __init__(self, input, output): - self.input = input - self.output = output + def __init__(self, input=None, output=None): + self._input = input + self._output = output + + input = property(lambda self: self._input or sys.stdin) + output = property(lambda self: self._output or sys.stdout) def __repr__(self): if inspect.stack()[1][3] == '?': @@ -1872,7 +1875,7 @@ Enter any module name to get more help. Or, type "modules spam" to search for modules whose descriptions contain the word "spam". ''') -help = Helper(sys.stdin, sys.stdout) +help = Helper() class Scanner: """A generic tree iterator.""" |