Skip to content

Commit e5d518f

Browse files
committed
Merged revisions 83370,83372-83374,83384 via svnmerge from
svn+ssh://svn.python.org/python/branches/py3k ........ r83370 | georg.brandl | 2010-07-31 23:51:48 +0200 (Sa, 31 Jul 2010) | 5 lines #8198: the Helper class should not save the stdin and stdout objects at import time, rather by default use the current streams like the other APIs that output help. ........ r83372 | georg.brandl | 2010-08-01 00:05:54 +0200 (So, 01 Aug 2010) | 1 line #4007: remove *.a and *.so.X.Y files in "make clean". ........ r83373 | georg.brandl | 2010-08-01 00:11:11 +0200 (So, 01 Aug 2010) | 1 line #5147: revert accidental indentation of header constant for MozillaCookieJar. ........ r83374 | georg.brandl | 2010-08-01 00:32:52 +0200 (So, 01 Aug 2010) | 1 line #5146: handle UID THREAD command correctly. ........ r83384 | georg.brandl | 2010-08-01 08:32:55 +0200 (So, 01 Aug 2010) | 1 line Build properties using lambdas. This makes test_pyclbr pass again, because it does not think that input and output are methods anymore. ........
1 parent caa78fe commit e5d518f

5 files changed

Lines changed: 21 additions & 9 deletions

File tree

Lib/http/cookiejar.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1964,9 +1964,9 @@ class MozillaCookieJar(FileCookieJar):
19641964
"""
19651965
magic_re = re.compile("#( Netscape)? HTTP Cookie File")
19661966
header = """\
1967-
# Netscape HTTP Cookie File
1968-
# http://www.netscape.com/newsref/std/cookie_spec.html
1969-
# This is a generated file! Do not edit.
1967+
# Netscape HTTP Cookie File
1968+
# http://www.netscape.com/newsref/std/cookie_spec.html
1969+
# This is a generated file! Do not edit.
19701970
19711971
"""
19721972

Lib/imaplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,7 @@ def uid(self, command, *args):
765765
', '.join(Commands[command])))
766766
name = 'UID'
767767
typ, dat = self._simple_command(name, command, *args)
768-
if command in ('SEARCH', 'SORT'):
768+
if command in ('SEARCH', 'SORT', 'THREAD'):
769769
name = command
770770
else:
771771
name = 'FETCH'

Lib/pydoc.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1694,9 +1694,12 @@ class Helper:
16941694
'CONTEXTMANAGERS': ('context-managers', 'with'),
16951695
}
16961696

1697-
def __init__(self, input, output):
1698-
self.input = input
1699-
self.output = output
1697+
def __init__(self, input=None, output=None):
1698+
self._input = input
1699+
self._output = output
1700+
1701+
input = property(lambda self: self._input or sys.stdin)
1702+
output = property(lambda self: self._output or sys.stdout)
17001703

17011704
def __repr__(self):
17021705
if inspect.stack()[1][3] == '?':
@@ -1872,7 +1875,7 @@ def onerror(modname):
18721875
for modules whose descriptions contain the word "spam".
18731876
''')
18741877

1875-
help = Helper(sys.stdin, sys.stdout)
1878+
help = Helper()
18761879

18771880
class Scanner:
18781881
"""A generic tree iterator."""

Makefile.pre.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,8 +1166,9 @@ docclean:
11661166
-rm -rf Doc/tools/sphinx Doc/tools/pygments Doc/tools/docutils
11671167

11681168
clean: pycremoval
1169-
find . -name '*.o' -exec rm -f {} ';'
1169+
find . -name '*.[oa]' -exec rm -f {} ';'
11701170
find . -name '*.s[ol]' -exec rm -f {} ';'
1171+
find . -name '*.so.[0-9]*.[0-9]*' -exec rm -f {} ';'
11711172
find build -name 'fficonfig.h' -exec rm -f {} ';' || true
11721173
find build -name 'fficonfig.py' -exec rm -f {} ';' || true
11731174
-rm -f Lib/lib2to3/*Grammar*.pickle

Misc/NEWS

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,14 @@ C-API
8484
Library
8585
-------
8686

87+
- Issue #5146: Handle UID THREAD command correctly in imaplib.
88+
89+
- Issue #5147: Fix the header generated for cookie files written by
90+
http.cookiejar.MozillaCookieJar.
91+
92+
- Issue #8198: In pydoc, output all help text to the correct stream
93+
when sys.stdout is reassigned.
94+
8795
- Issue #8230: Fix Lib/test/sortperf.py.
8896

8997
- Issue #7395: Fix tracebacks in pstats interactive browser.

0 commit comments

Comments
 (0)