summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Localize the function lookup in timeit.Raymond Hettinger2009-04-031-2/+2
|
* Have namedtuple's field renamer assign names thatRaymond Hettinger2009-04-022-7/+7
| | | | are consistent with the corresponding tuple index.
* In 3k this becomes an items() call.R. David Murray2009-04-022-1/+7
| | | | | | | | | | | | | Merged revisions 71046 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r71046 | r.david.murray | 2009-04-02 10:05:35 -0400 (Thu, 02 Apr 2009) | 4 lines Add missing iteritems() call to the for loop in mailbox.MH.get_message(). Fixes issue2625. ........
* importlib.test.source.test_abc_loader was making a bad assumption that all fileBrett Cannon2009-04-021-16/+21
| | | | | | paths used '/' as a path separator. Fixes issue #5646.
* Make a test in importlib have a more robust test value.Brett Cannon2009-04-021-1/+1
|
* Give a more informative message on an importlib test upon failure.Brett Cannon2009-04-021-1/+3
|
* Issue #5640: Fix _multibytecodec so that CJK codecs don't repeatHye-Shik Chang2009-04-021-0/+4
| | | | | error replacement returned by codec error callbacks twice in IncrementalEncoder and StreamWriter.
* Check that on a platform that is expected to have a case-insensitive filesystemBrett Cannon2009-04-021-1/+8
| | | | | | that is in fact the case. Closes issue #5442.
* Fixing the issue4860. Escaping the embedded '"' in the js_output method of ↵Senthil Kumaran2009-04-022-5/+5
| | | | Morsel class.
* add io and _pyio to test___all__Benjamin Peterson2009-04-021-0/+2
|
* Merged revisions 71014 via svnmerge fromBenjamin Peterson2009-04-021-4/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r71014 | benjamin.peterson | 2009-04-01 20:03:17 -0500 (Wed, 01 Apr 2009) | 1 line handle SEEK_ constants in test_io ........
* add SEEK_ constants to _pyioBenjamin Peterson2009-04-021-0/+1
|
* make 'c' only accept bytes and 'C' only unicode #5499Benjamin Peterson2009-04-021-3/+3
|
* #5656: detect correct encoding of files when reporting coverage in trace.py, ↵Georg Brandl2009-04-012-11/+20
| | | | and ignore files in the temporary directory when reporting.
* Merged revisions 70997 via svnmerge fromR. David Murray2009-04-011-0/+13
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70997 | r.david.murray | 2009-04-01 17:26:18 -0400 (Wed, 01 Apr 2009) | 3 lines Add tests checking the CSV module's ability to handle embedded newlines in quoted field values. ........
* Merged revisions 70992,70995 via svnmerge fromBenjamin Peterson2009-04-011-1/+7
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70992 | georg.brandl | 2009-04-01 16:00:55 -0500 (Wed, 01 Apr 2009) | 1 line #4572: add SEEK_* values as constants in io.py. ........ r70995 | benjamin.peterson | 2009-04-01 16:12:54 -0500 (Wed, 01 Apr 2009) | 1 line add seek constants to __all__ ........
* barry has already been causing test breakageBenjamin Peterson2009-04-011-0/+1
|
* Merged revisions 70979 via svnmerge fromBrett Cannon2009-04-011-8/+8
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70979 | brett.cannon | 2009-04-01 13:25:48 -0700 (Wed, 01 Apr 2009) | 3 lines test_warnings ironically had a single test that was not protecting the warnings filter and was resetting it. ........
* Fix for issue5040. Adding support for unicode message passing and tests for ↵Senthil Kumaran2009-04-013-13/+44
| | | | unicode message and test for Content-Length.
* Merged revisions 70975 via svnmerge fromBrett Cannon2009-04-011-22/+24
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70975 | brett.cannon | 2009-04-01 12:57:10 -0700 (Wed, 01 Apr 2009) | 4 lines test_logging was blindly clearing the warnings filter. This caused PendingDeprecationWarnings to be spewed all over by unittest.failIf*(). Fix moves over to using warnings.catch_warning to protect the warnings filter. ........
* Issue #5647: MutableSet.__iand__() no longer mutates self during iteration.Raymond Hettinger2009-04-012-4/+28
|
* Merged revisions 70965 via svnmerge fromBrett Cannon2009-04-011-0/+35
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70965 | brett.cannon | 2009-04-01 11:03:59 -0700 (Wed, 01 Apr 2009) | 5 lines _warnings was importing itself to get an attribute. That's bad if warnings gets called in a thread that was spawned by an import itself. Last part to close #1665206. ........
* Remove redundant import of tkinter.R. David Murray2009-04-011-3/+0
|
* Merged revisions 70956 via svnmerge fromBrett Cannon2009-04-011-14/+11
| | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70956 | brett.cannon | 2009-04-01 09:00:34 -0700 (Wed, 01 Apr 2009) | 5 lines The cgitb module had imports in its functions. This can cause deadlock with the import lock if called from within a thread that was triggered by an import. Partially fixes issue #1665206. ........
* #5636: fix next -> __next__ in csv reader docs.Georg Brandl2009-04-012-2/+6
|
* Allow skipping of regression tests not supported on windows. This reduces ↵Kristján Valur Jónsson2009-04-017-9/+13
| | | | noise in the regression test suite for py3k on Windows.
* The BDFL has retired! Long live the FLUFL (Friendly Language Uncle For Life)!Brett Cannon2009-04-012-0/+32
|
* #5624: _winreg is winreg in Python 3.Georg Brandl2009-04-012-10/+10
|
* Merged revisions 70940 via svnmergeGeorg Brandl2009-04-011-1/+5
| | | | | | | | ........ r70940 | georg.brandl | 2009-03-31 23:21:14 -0500 (Di, 31 Mär 2009) | 2 lines The SimpleXMLRPCServer's CGI handler now runs like a pony. ........
* Merged revisions 70931 via svnmerge fromJack Diederich2009-04-011-1/+13
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70931 | jack.diederich | 2009-03-31 19:46:48 -0400 (Tue, 31 Mar 2009) | 1 line #5228: add pickle support to functools.partial ........
* Merged revisions 70936 via svnmerge fromR. David Murray2009-04-012-8/+29
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70936 | r.david.murray | 2009-03-31 23:21:43 -0400 (Tue, 31 Mar 2009) | 4 lines Fix issue 2522. locale.format now checks that it is passed exactly one pattern, which avoids mysterious errors where it had seemed to fail to do localization. ........
* Rip out a useless method that the superclass implements properly.Brett Cannon2009-04-011-19/+0
|
* An HTTPResponse is, by its nature, readable.Jeremy Hylton2009-04-011-0/+3
|
* Merged revisions 70930 via svnmerge fromR. David Murray2009-03-311-9/+4
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70930 | r.david.murray | 2009-03-31 19:45:39 -0400 (Tue, 31 Mar 2009) | 3 lines Fix Windows test skip error revealed by buildbot. Also a comment spelling correction in a previously fixed test. ........
* Merged revisions 70734,70775,70856,70874,70876-70877 via svnmergeR. David Murray2009-03-3129-67/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ........ r70734 | r.david.murray | 2009-03-30 15:04:00 -0400 (Mon, 30 Mar 2009) | 7 lines Add import_function method to test.test_support, and modify a number of tests that expect to be skipped if imports fail or functions don't exist to use import_function and import_module. The ultimate goal is to change regrtest to not skip automatically on ImportError. Checking in now to make sure the buldbots don't show any errors on platforms I can't direct test on. ........ r70775 | r.david.murray | 2009-03-30 19:05:48 -0400 (Mon, 30 Mar 2009) | 4 lines Change more tests to use import_module for the modules that should cause tests to be skipped. Also rename import_function to the more descriptive get_attribute and add a docstring. ........ r70856 | r.david.murray | 2009-03-31 14:32:17 -0400 (Tue, 31 Mar 2009) | 7 lines A few more test skips via import_module, and change import_module to return the error message produced by importlib, so that if an import in the package whose import is being wrapped is what failed the skip message will contain the name of that module instead of the name of the wrapped module. Also fixed formatting of some previous comments. ........ r70874 | r.david.murray | 2009-03-31 15:33:15 -0400 (Tue, 31 Mar 2009) | 5 lines Improve test_support.import_module docstring, remove deprecated flag from get_attribute since it isn't likely to do anything useful. ........ r70876 | r.david.murray | 2009-03-31 15:49:15 -0400 (Tue, 31 Mar 2009) | 4 lines Remove the regrtest check that turns any ImportError into a skipped test. Hopefully all modules whose imports legitimately result in a skipped test have been properly wrapped by the previous commits. ........ r70877 | r.david.murray | 2009-03-31 15:57:24 -0400 (Tue, 31 Mar 2009) | 2 lines Add NEWS entry for regrtest change. ........
* fix TextIOWrapper.read() when the buffer is not readable #5628Benjamin Peterson2009-03-312-0/+8
|
* Merged revisions 70920,70922 via svnmerge fromTarek Ziadé2009-03-312-2/+4
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70920 | tarek.ziade | 2009-03-31 17:44:10 -0500 (Tue, 31 Mar 2009) | 1 line catching msvc9compiler error as well ........ r70922 | tarek.ziade | 2009-03-31 17:47:01 -0500 (Tue, 31 Mar 2009) | 1 line fixed the test for win32 CompileError ........
* Merged revisions 70910 via svnmerge fromTarek Ziadé2009-03-313-2/+34
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70910 | tarek.ziade | 2009-03-31 17:27:23 -0500 (Tue, 31 Mar 2009) | 1 line #5583 Added optional Extensions in Distutils ........
* Merged revisions 70886,70888-70892 via svnmerge fromTarek Ziadé2009-03-3113-58/+341
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70886 | tarek.ziade | 2009-03-31 15:50:59 -0500 (Tue, 31 Mar 2009) | 1 line added tests for the clean command ........ r70888 | tarek.ziade | 2009-03-31 15:53:13 -0500 (Tue, 31 Mar 2009) | 1 line more tests for the register command ........ r70889 | tarek.ziade | 2009-03-31 15:53:55 -0500 (Tue, 31 Mar 2009) | 1 line more tests for the upload command ........ r70890 | tarek.ziade | 2009-03-31 15:54:38 -0500 (Tue, 31 Mar 2009) | 1 line added test to the install_data command ........ r70891 | tarek.ziade | 2009-03-31 15:55:21 -0500 (Tue, 31 Mar 2009) | 1 line added tests to the install_headers command ........ r70892 | tarek.ziade | 2009-03-31 15:56:11 -0500 (Tue, 31 Mar 2009) | 1 line making sdist and config test silents ........
* Merged revisions 70879 via svnmerge fromHirokazu Yamamoto2009-03-311-4/+16
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70879 | hirokazu.yamamoto | 2009-04-01 05:14:04 +0900 | 1 line Issue #5387: Fixed mmap.move crash by integer overflow. (take2) ........
* Merged revisions 70779 via svnmerge fromR. David Murray2009-03-311-0/+1
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70779 | r.david.murray | 2009-03-30 19:10:37 -0400 (Mon, 30 Mar 2009) | 3 lines Actually suppress warnings in test_at_least_import_untested_modules inside the catch_warnings context manager. ........
* Per the language summit, the optional fastpath imports should use ↵Raymond Hettinger2009-03-311-1/+1
| | | | from-import-star.
* Make urllib use HTTP/1.1. It seems to work now, but hasn't beenJeremy Hylton2009-03-311-4/+0
| | | | carefully tested.
* Merged revisions 70801,70809 via svnmerge fromJeremy Hylton2009-03-313-2/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk The merge ran into a lot of conflicts because dicts were replaced with sets in the Python 3 version of the symbol table. ........ r70801 | jeremy.hylton | 2009-03-31 09:17:03 -0400 (Tue, 31 Mar 2009) | 3 lines Add is_declared_global() which distinguishes between implicit and explicit global variables. ........ r70809 | jeremy.hylton | 2009-03-31 09:48:15 -0400 (Tue, 31 Mar 2009) | 14 lines Global statements from one function leaked into parallel functions. Re http://bugs.python.org/issue4315 The symbol table used the same name dictionaries to recursively analyze each of its child blocks, even though the dictionaries are modified during analysis. The fix is to create new temporary dictionaries via the analyze_child_block(). The only information that needs to propagate back up is the names of the free variables. Add more comments and break out a helper function. This code doesn't get any easier to understand when you only look at it once a year. ........
* Simplify the Request class. The basic components of the parsedJeremy Hylton2009-03-314-125/+138
| | | | | | | | | | | | Request are now available as public attributes, e.g. full_url and host. The accessor methods are deprecated. The implementation replace the complicated __getattr__ machinery with a _parse() method. The response from an HTTP request is now an HTTPResponse instance instead of an addinfourl() wrapper instance. The wrapper provided minimal extract functionality and was undocumented. The API of addinfourl() was preserved, except for close hooks, by adding a few methods and public attributes to the HTTPResponse class.
* Merged revisions 70800 via svnmerge fromHirokazu Yamamoto2009-03-311-0/+17
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r70800 | hirokazu.yamamoto | 2009-03-31 22:13:05 +0900 | 1 line Issue #5387: Fixed mmap.move crash by integer overflow. ........
* Fix segfaults when running test_exceptions with coverage tracing, caused by ↵Georg Brandl2009-03-311-0/+6
| | | | wrongly defining Exception.__context__ as a T_OBJECT structmember which does not set the member to NULL on None assignment, and generally does not do type checks. This could be used to crash the interpreter by setting any object to __context__. The same applies to __cause__. Also document the PyException_* functions.
* The message for the exception when time.strptime was passed something otherBrett Cannon2009-03-311-1/+1
| | | | than str did not output the type of the argument but the object itself.
* merge 70792 to py3kJesse Noller2009-03-311-1/+1
|
* merge 70783 to py3kJesse Noller2009-03-311-0/+4
|