Commit Graph

17947 Commits

Author SHA1 Message Date
Benjamin Peterson c98198d3ca fix ws 2011-06-27 17:51:18 -05:00
Benjamin Peterson 90ebedc626 add more ast tests (closes #11302)
A patch from Vincent Legoll.
2011-06-27 17:46:06 -05:00
Benjamin Peterson cfb7731dd2 strip trailing ws 2011-06-27 09:18:46 -05:00
Benjamin Peterson 7e6b3aac85 update profile license (closes #12417) 2011-06-27 09:14:34 -05:00
Senthil Kumaran e4ef726879 Fix closes issue1067702 The problem with close multiple ftp transfers were due cases where sockets/file were not closed immediately. Tightned those cases and failure is no longer observed. 2011-06-26 13:45:17 -07:00
Raymond Hettinger 2c316a3e29 Issue 11802: filecmp cache was growing without bound. 2011-06-25 17:14:53 +02:00
Raymond Hettinger 67a3e8336f Issue 10326: Fix regression to get test cases to pickle again. 2011-06-25 12:16:25 +02:00
Raymond Hettinger cba87311d2 Code simplification suggested by Sven Marnach. 2011-06-25 11:24:35 +02:00
Victor Stinner ecb863b29e Revert d370d609d09b as requested by Terry Jan Reedy:
"#3067: locale.setlocale() accepts a Unicode locale."
2011-06-20 22:07:06 +02:00
Victor Stinner f64a0cffca Issue #12285: multiprocessing.Pool() raises a ValueError if the number of
processes if negative or null.
2011-06-20 17:54:33 +02:00
Victor Stinner c36c6ccb41 Close #3067: locale.setlocale() accepts a Unicode locale. 2011-06-20 16:14:48 +02:00
R David Murray f1138bb1b6 #11700: proxy object close methods can now be called multiple times
This makes them work like the close provided by regular file objects.  This
patch also backports the close-the-underlying-file code for _ProxyFile objects
that was introduced along with context manager support in the 3.x branch.
2011-06-17 22:23:04 -04:00
Victor Stinner c74a6ba2d6 Issue #12133: AbstractHTTPHandler.do_open() of urllib.request closes the HTTP
connection if its getresponse() method fails with a socket error. Patch written
by Ezio Melotti.
2011-06-17 14:06:27 +02:00
Benjamin Peterson 0eb4ac4c62 allow "fake" filenames in findsource (closes #9284)
This allows findsource() to work in doctests.

A patch from Dirkjan Ochtman.
2011-06-11 15:53:11 -05:00
Benjamin Peterson a573e0df36 merge 2.7.2 release branch 2011-06-11 09:51:21 -05:00
Benjamin Peterson 377510d2d9 update pydoc-topics 2011-06-11 09:50:21 -05:00
Benjamin Peterson 9843ba5e54 bump to 2.7.2 final 2011-06-11 09:42:44 -05:00
Benjamin Peterson b30d5c711e merge heads 2011-06-10 11:33:58 -05:00
Benjamin Peterson 8b8162d868 merge 2.7.2 release branch with fix for #12009 2011-06-10 11:33:41 -05:00
Benjamin Peterson 43ee1a5d90 fix regression in netrc comment handling (closes #12009) 2011-06-10 11:32:52 -05:00
R David Murray 873c583244 #10694: zipfile now ignores garbage at the end of a zipfile.
Original fix by 'rep', final patch (with tests) by Xuanji Li.
2011-06-09 16:01:09 -04:00
Brian Curtin 5446f08c60 Correction to f1509fc75435 - Issue #11583
Rather than wrapping the C _isdir function in a Python function,
just import the C _isdir function directly. Additionally, add in the
docstring which was left out.
2011-06-09 10:00:42 -05:00
Brian Curtin caea7e8d23 Merge 2011-06-08 19:29:53 -05:00
Éric Araujo ce5493f33d Branch merge 2011-06-06 17:11:31 +02:00
Éric Araujo 865b573c04 Remove unnecessary executable bit on one distutils file 2011-06-04 20:45:33 +02:00
Mark Dickinson a493ca3fae Issue #12080: Fix a performance issue in Decimal._power_exact that caused some corner-case Decimal.__pow__ calls to take an unreasonably long time. 2011-06-04 18:24:15 +01:00
Victor Stinner e3826c7774 Issue #12016: Add test_errorhandle() to TestBase_Mapping of
test_multibytecodec_support. Improve also error message of the
test_errorhandle() of TestBase.
2011-06-03 23:56:43 +02:00
Raymond Hettinger 45b082935d Fix named tuples to work with vars(). 2011-06-02 20:40:35 -07:00
Victor Stinner e9b185f263 Issue #12085: Fix test_subprocess for my previous commit
Replace support by test_support, and add captured_stderr() function.
2011-06-01 01:57:48 +02:00
Victor Stinner 776e69b5b3 Close #12085: Fix an attribute error in subprocess.Popen destructor if the
constructor has failed, e.g. because of an undeclared keyword argument. Patch
written by Oleg Oshmyan.
2011-06-01 01:03:00 +02:00
Victor Stinner d9f5292443 Issue #12057: Add tests for ISO 2022 codecs
iso2022_jp, iso2022_jp_2 and iso2022_kr
2011-05-30 23:58:21 +02:00
Benjamin Peterson cd20705902 bump to 2.7.2rc1 2011-05-29 16:50:27 -05:00
Éric Araujo 8c0c9d2641 Branch merge 2011-05-29 17:57:29 +02:00
Éric Araujo be77831375 Fix test_distutils when sys.dont_write_bytecode is true (#9831).
The tests now pass all combinations of -O/-OO and -B.  See also #7071
and #6292 for previous variations on the same theme.
2011-05-28 23:21:19 +02:00
Ned Deily 482f908410 Issue #9670: Increase the default stack size for secondary threads on
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
2011-05-28 00:11:54 -07:00
Benjamin Peterson 1e94021ea5 merge heads 2011-05-26 09:57:21 -05:00
Benjamin Peterson 4fa68ab10b raise an ValueError in getvalue() on closed StringIO (closes #12161)
Thanks for Catalin Iacob for the patch.
2011-05-26 09:56:41 -05:00
Éric Araujo 8fcda6829a Branch merge 2011-05-26 16:52:22 +02:00
Victor Stinner dbfba1667c Close #12182: Fix pydoc.HTMLDoc.multicolumn() if Python uses the new (true)
division (python -Qnew). Patch written by Ralf W. Grosse-Kunstleve.
2011-05-26 13:37:25 +02:00
Kurt B. Kaiser a5392455f6 IDLE: #6378: Further adjust idle.bat to start associated Python 2011-05-25 22:36:51 -04:00
Victor Stinner daf17e9bc8 Issue #12175: RawIOBase.readall() now returns None if read() returns None. 2011-05-25 22:52:37 +02:00
Victor Stinner 5100a405dc Issue #12175: FileIO.readall() now raises a ValueError instead of an IOError if
the file is closed.
2011-05-25 22:15:36 +02:00
Éric Araujo 31890bc9ba Fix display of html.parser.HTMLParser.feed docstrin 2011-05-25 18:11:43 +02:00
Éric Araujo ea088c5163 Add missing name in pkgutil.__all__ 2011-05-25 18:11:24 +02:00
Éric Araujo 78d9133989 Branch merge 2011-05-25 18:06:35 +02:00
Victor Stinner 9e5cdcc243 Issue #12057: Add tests for the HZ encoding 2011-05-25 00:19:07 +02:00
Charles-François Natali b94e0cde60 Issue #1441530: In imaplib, use makefile() to wrap the SSL socket to avoid
heap fragmentation and MemoryError with some malloc implementations.
2011-05-24 23:10:54 +02:00
Victor Stinner 40b41e1ffd Issue #12100: Don't reset incremental encoders of CJK codecs at each call to
their encode() method anymore, but continue to call the reset() method if the
final argument is True.
2011-05-24 22:29:13 +02:00
Benjamin Peterson 8de87a6403 correctly lookup __dir__ 2011-05-23 16:11:05 -05:00
Victor Stinner 6c603c4593 test_codecs now removes the temporay file (created by the test) 2011-05-23 16:19:31 +02:00