summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Recorded merge of revisions 74210 via svnmerge fromGeorg Brandl2009-07-261-170/+153
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74210 | georg.brandl | 2009-07-26 16:44:23 +0200 (So, 26 Jul 2009) | 1 line Move member descriptions inside the classes. ........
* Fixing module names in the NEWS entry.Senthil Kumaran2009-07-261-2/+3
|
* versionadded: 3.2. not 3.1.Senthil Kumaran2009-07-251-1/+1
|
* Fixed Issue1424152 in Py3k: urllib2 fails with HTTPS over Proxy.Senthil Kumaran2009-07-255-3/+68
|
* account for range() py3k changeBenjamin Peterson2009-07-251-2/+2
|
* Blocked revisions 74194 via svnmergeGeorg Brandl2009-07-240-0/+0
| | | | | | | | ........ r74194 | georg.brandl | 2009-07-24 22:09:46 +0200 (Fr, 24 Jul 2009) | 1 line #6564: fix section about the two raise syntaxes. ........
* Blocked revisions 74189 via svnmergeAmaury Forgeot d'Arc2009-07-230-0/+0
| | | | | | | | | | ........ r74189 | amaury.forgeotdarc | 2009-07-23 21:26:02 +0200 (jeu., 23 juil. 2009) | 4 lines #6553: crash in cPickle.load(), when given a StringIO with incomplete data. Will backport to 2.6, 3.x already fixed a similar issue with issue4298. ........
* Recorded merge of revisions 74185 via svnmerge fromGeorg Brandl2009-07-231-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74185 | georg.brandl | 2009-07-23 11:17:09 +0200 (Do, 23 Jul 2009) | 1 line Fix the "pylocals" gdb command. ........
* Specialize assertTrue checks when possible.Alexandre Vassalotti2009-07-221-64/+61
| | | | We should get slightly more helpful failure messages with this change.
* Use assertGreater instead of assertTrue(x > y).Alexandre Vassalotti2009-07-221-1/+1
|
* Clean up test_curses.Alexandre Vassalotti2009-07-221-5/+6
| | | | | By using __stdout__ directly, test_curses caused regrtest.py to duplicate the output of some test results.
* Merged revisions 74179 via svnmerge fromEzio Melotti2009-07-221-7/+8
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74179 | ezio.melotti | 2009-07-23 00:08:49 +0300 (Thu, 23 Jul 2009) | 1 line #6423 has_key -> in ........
* Recorded merge of revisions 74175 via svnmerge fromR. David Murray2009-07-220-0/+0
| | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74175 | r.david.murray | 2009-07-22 13:22:58 -0400 (Wed, 22 Jul 2009) | 4 lines Backport of fix for issue 6542: make sure test_os.TestInvalidFD.test_closerange does not close any valid file descriptors. ........
* Blocked revisions 74152,74173 via svnmergeBenjamin Peterson2009-07-220-0/+0
| | | | | | | | | | | | ........ r74152 | benjamin.peterson | 2009-07-21 19:03:43 -0500 (Tue, 21 Jul 2009) | 1 line simplify ........ r74173 | benjamin.peterson | 2009-07-22 11:34:37 -0500 (Wed, 22 Jul 2009) | 1 line revert r74152 ........
* Issue 6542: Make sure that TestInvalidFD.test_closerange does notR. David Murray2009-07-221-1/+12
| | | | close any valid file descriptors.
* Merged revisions 74167 via svnmerge fromGeorg Brandl2009-07-223-3/+12
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74167 | georg.brandl | 2009-07-22 13:57:15 +0200 (Mi, 22 Jul 2009) | 1 line Issue #6540: Fixed crash for bytearray.translate() with invalid parameters. ........
* Merged revisions 74163 via svnmerge fromTarek Ziadé2009-07-222-4/+8
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74163 | tarek.ziade | 2009-07-22 10:55:19 +0200 (Wed, 22 Jul 2009) | 1 line Issue #6545: Removed assert statements in distutils.Extension, so the behavior is similar when used with -O ........
* Use unittest.SkipTest to skip tests in test_threading.Alexandre Vassalotti2009-07-221-21/+11
|
* Remove erroneous print statement.Alexandre Vassalotti2009-07-221-3/+3
|
* Only skip test_nis on Solaris.Alexandre Vassalotti2009-07-221-1/+3
|
* Issue #6151: Make PyDescr_COMMON conform to standard C.Alexandre Vassalotti2009-07-224-23/+31
|
* Issue #6218: Make io.BytesIO and io.StringIO picklable.Alexandre Vassalotti2009-07-225-16/+410
|
* Issue #6241: Better type checking for the arguments of io.StringIO.Alexandre Vassalotti2009-07-223-5/+38
|
* Issue #6360: Simplify string decoding in xmlrpc.client.Alexandre Vassalotti2009-07-221-17/+4
|
* Issue #6242: Fix deallocator of io.StringIO and io.BytesIO.Alexandre Vassalotti2009-07-223-6/+17
|
* Make test_normalization verify the version of the correct test data file.Alexandre Vassalotti2009-07-221-4/+6
|
* Fix open_urlresource() to pass its arguments to open() when the resource is ↵Alexandre Vassalotti2009-07-221-1/+1
| | | | | | | | cached. This fixes the failure of test_normalization on the Windows buildbots, where the Normalization.txt file was read as a MBCS text file, instead as a UTF-8 one.
* Merged revisions 74150 via svnmerge fromBenjamin Peterson2009-07-211-0/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74150 | benjamin.peterson | 2009-07-21 18:13:14 -0500 (Tue, 21 Jul 2009) | 1 line install unittest as a package ........
* Merged revisions 74148 via svnmerge fromEzio Melotti2009-07-211-1/+1
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74148 | ezio.melotti | 2009-07-21 23:18:27 +0300 (Tue, 21 Jul 2009) | 1 line #6536 fixed typo ........
* Merged revisions 74139 via svnmerge fromBenjamin Peterson2009-07-211-4/+6
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r74139 | benjamin.peterson | 2009-07-21 09:08:40 -0500 (Tue, 21 Jul 2009) | 1 line must use _PyThreadState_Current so it isn't checked for NULL #6530 ........
* Merged revisions 74117,74123 via svnmerge fromBenjamin Peterson2009-07-213-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ................ r74117 | benjamin.peterson | 2009-07-20 12:24:30 -0500 (Mon, 20 Jul 2009) | 9 lines Merged revisions 74116 via svnmerge from svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r74116 | benjamin.peterson | 2009-07-20 12:22:35 -0500 (Mon, 20 Jul 2009) | 1 line placate windows ........ ................ r74123 | benjamin.peterson | 2009-07-20 16:09:45 -0500 (Mon, 20 Jul 2009) | 13 lines Merged revisions 74121-74122 via svnmerge from svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r74121 | benjamin.peterson | 2009-07-20 15:40:59 -0500 (Mon, 20 Jul 2009) | 1 line try to make warning tests more robust ........ r74122 | benjamin.peterson | 2009-07-20 15:44:14 -0500 (Mon, 20 Jul 2009) | 1 line platform compat ........ ................
* Merged revisions 73750 via svnmerge fromAlexandre Vassalotti2009-07-211-5/+4
| | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73750 | benjamin.peterson | 2009-07-01 19:45:19 -0400 (Wed, 01 Jul 2009) | 1 line small optimization: avoid popping the current block until we have to ........
* Merged revisions 72487-72488,72879 via svnmerge fromAlexandre Vassalotti2009-07-2118-306/+335
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72487 | jeffrey.yasskin | 2009-05-08 17:51:06 -0400 (Fri, 08 May 2009) | 7 lines PyCode_NewEmpty: Most uses of PyCode_New found by http://www.google.com/codesearch?q=PyCode_New are trying to build an empty code object, usually to put it in a dummy frame object. This patch adds a PyCode_NewEmpty wrapper which lets the user specify just the filename, function name, and first line number, instead of also requiring lots of code internals. ........ r72488 | jeffrey.yasskin | 2009-05-08 18:23:21 -0400 (Fri, 08 May 2009) | 13 lines Issue 5954, PyFrame_GetLineNumber: Most uses of PyCode_Addr2Line (http://www.google.com/codesearch?q=PyCode_Addr2Line) are just trying to get the line number of a specified frame, but there's no way to do that directly. Forcing people to go through the code object makes them know more about the guts of the interpreter than they should need. The remaining uses of PyCode_Addr2Line seem to be getting the line from a traceback (for example, http://www.google.com/codesearch/p?hl=en#u_9_nDrchrw/pygame-1.7.1release/src/base.c&q=PyCode_Addr2Line), which is replaced by the tb_lineno field. So we may be able to deprecate PyCode_Addr2Line entirely for external use. ........ r72879 | jeffrey.yasskin | 2009-05-23 19:23:01 -0400 (Sat, 23 May 2009) | 14 lines Issue #6042: lnotab-based tracing is very complicated and isn't documented very well. There were at least 3 comment blocks purporting to document co_lnotab, and none did a very good job. This patch unifies them into Objects/lnotab_notes.txt which tries to completely capture the current state of affairs. I also discovered that we've attached 2 layers of patches to the basic tracing scheme. The first layer avoids jumping to instructions that don't start a line, to avoid problems in if statements and while loops. The second layer discovered that jumps backward do need to trace at instructions that don't start a line, so it added extra lnotab entries for 'while' and 'for' loops, and added a special case for backward jumps within the same line. I replaced these patches by just treating forward and backward jumps differently. ........
* Merged revisions 73683,73786 via svnmerge fromAlexandre Vassalotti2009-07-212-19/+11
| | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73683 | georg.brandl | 2009-06-29 10:44:49 -0400 (Mon, 29 Jun 2009) | 1 line Fix error handling in PyCode_Optimize, by Alexander Schremmer at EuroPython sprint. ........ r73786 | benjamin.peterson | 2009-07-02 18:56:16 -0400 (Thu, 02 Jul 2009) | 1 line condense with assertRaises ........
* Add ignore rule for the Doc/tools/jinga2/ directory.Alexandre Vassalotti2009-07-212-0/+2
|
* Revert r74125.Alexandre Vassalotti2009-07-210-0/+0
|
* Merged revisions 73706,73778 via svnmerge fromAlexandre Vassalotti2009-07-213-19/+146
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73706 | georg.brandl | 2009-06-30 12:18:55 -0400 (Tue, 30 Jun 2009) | 1 line #6384: Add a heading for the exception hierarchy. ........ r73778 | r.david.murray | 2009-07-02 14:19:20 -0400 (Thu, 02 Jul 2009) | 3 lines Issue 6389: add documentation for the 'mode' flags defined in the stat module. ........
* Merged revisions 73871 via svnmerge fromAlexandre Vassalotti2009-07-211-2/+2
| | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r73871 | alexandre.vassalotti | 2009-07-06 22:17:30 -0400 (Mon, 06 Jul 2009) | 7 lines Grow the allocated buffer in PyUnicode_EncodeUTF7 to avoid buffer overrun. Without this change, test_unicode.UnicodeTest.test_codecs_utf7 crashes in debug mode. What happens is the unicode string u'\U000abcde' with a length of 1 encodes to the string '+2m/c3g-' of length 8. Since only 5 bytes is reserved in the buffer, a buffer overrun occurs. ........
* Ignore the correct jinga directory.Alexandre Vassalotti2009-07-200-0/+0
|
* Make the wdocs for importlib.abc.ExecutionLoader to be weaker in terms of ↵Brett Cannon2009-07-201-1/+1
| | | | what is needed to execute a module.
* Blocked revisions 74119 via svnmergeBenjamin Peterson2009-07-200-0/+0
| | | | | | | | ........ r74119 | benjamin.peterson | 2009-07-20 15:28:08 -0500 (Mon, 20 Jul 2009) | 2 lines the Slice in x[::] has to have step as None to help the interpreter ........
* Remove apparently unneeded and un-cleaned-up munging of sys.path fromR. David Murray2009-07-201-3/+0
| | | | | test_re. Tests pass on my machine without it, and I can't see any obvious place in the tests that would need it.
* Merged revisions 74114 via svnmerge fromBenjamin Peterson2009-07-2018-140/+405
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ................ r74114 | benjamin.peterson | 2009-07-20 10:33:09 -0500 (Mon, 20 Jul 2009) | 110 lines Merged revisions 73771,73811,73840,73842,73848-73849,73861,73957-73960,73964-73969,73972-73974,73977,73981,73984,74065,74113 via svnmerge from svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3 ........ r73771 | benjamin.peterson | 2009-07-02 10:56:55 -0500 (Thu, 02 Jul 2009) | 1 line force the imports fixer to be run after the import one #6400 ........ r73811 | benjamin.peterson | 2009-07-03 09:03:14 -0500 (Fri, 03 Jul 2009) | 1 line check for sep, not pathsep when looking for a subpackage #6408 ........ r73840 | benjamin.peterson | 2009-07-04 09:52:28 -0500 (Sat, 04 Jul 2009) | 1 line don't print diffs by default; it's annoying ........ r73842 | benjamin.peterson | 2009-07-04 09:58:46 -0500 (Sat, 04 Jul 2009) | 1 line complain when not showing diffs or writing ........ r73848 | alexandre.vassalotti | 2009-07-04 23:38:19 -0500 (Sat, 04 Jul 2009) | 2 lines Fix test_refactor_stdin to handle print_output() method with 4 arguments. ........ r73849 | alexandre.vassalotti | 2009-07-04 23:43:18 -0500 (Sat, 04 Jul 2009) | 5 lines Issue 2370: Add fixer for the removal of operator.isCallable() and operator.sequenceIncludes(). Patch contributed by Jeff Balogh (and updated by me). ........ r73861 | benjamin.peterson | 2009-07-05 09:15:53 -0500 (Sun, 05 Jul 2009) | 1 line cleanup and use unicode where appropiate ........ r73957 | benjamin.peterson | 2009-07-11 15:49:56 -0500 (Sat, 11 Jul 2009) | 1 line fix calls to str() with unicode() ........ r73958 | benjamin.peterson | 2009-07-11 15:51:51 -0500 (Sat, 11 Jul 2009) | 1 line more str() -> unicode() ........ r73959 | benjamin.peterson | 2009-07-11 16:40:08 -0500 (Sat, 11 Jul 2009) | 1 line add tests for refactor_dir() ........ r73960 | benjamin.peterson | 2009-07-11 16:44:32 -0500 (Sat, 11 Jul 2009) | 1 line don't parse files just because they end with 'py' (no dot) ........ r73964 | benjamin.peterson | 2009-07-11 17:30:15 -0500 (Sat, 11 Jul 2009) | 1 line simplify ........ r73965 | benjamin.peterson | 2009-07-11 17:31:30 -0500 (Sat, 11 Jul 2009) | 1 line remove usage of get_prefix() ........ r73966 | benjamin.peterson | 2009-07-11 17:33:35 -0500 (Sat, 11 Jul 2009) | 1 line revert unintended change in 73965 ........ r73967 | benjamin.peterson | 2009-07-11 17:34:44 -0500 (Sat, 11 Jul 2009) | 1 line avoid expensive checks and assume the node did change ........ r73968 | benjamin.peterson | 2009-07-11 20:46:46 -0500 (Sat, 11 Jul 2009) | 1 line use a regular dict for the heads to avoid adding lists in the loop ........ r73969 | benjamin.peterson | 2009-07-11 20:50:43 -0500 (Sat, 11 Jul 2009) | 1 line prefix headnode functions with '_' ........ r73972 | benjamin.peterson | 2009-07-11 21:25:45 -0500 (Sat, 11 Jul 2009) | 1 line try to make the head node dict as sparse as possible ........ r73973 | benjamin.peterson | 2009-07-11 21:59:49 -0500 (Sat, 11 Jul 2009) | 1 line a better idea; add an option to *not* print diffs ........ r73974 | benjamin.peterson | 2009-07-11 22:00:29 -0500 (Sat, 11 Jul 2009) | 1 line add space ........ r73977 | benjamin.peterson | 2009-07-12 10:16:07 -0500 (Sun, 12 Jul 2009) | 1 line update get_headnode_dict tests for recent changes ........ r73981 | benjamin.peterson | 2009-07-12 12:06:39 -0500 (Sun, 12 Jul 2009) | 4 lines detect when "from __future__ import print_function" is given Deprecate the 'print_function' option and the -p flag ........ r73984 | benjamin.peterson | 2009-07-12 16:16:37 -0500 (Sun, 12 Jul 2009) | 1 line add tests for Call; thanks Joe Amenta ........ r74065 | benjamin.peterson | 2009-07-17 12:52:49 -0500 (Fri, 17 Jul 2009) | 1 line pathname2url and url2pathname are in urllib.request not urllib.parse #6496 ........ r74113 | benjamin.peterson | 2009-07-20 08:56:57 -0500 (Mon, 20 Jul 2009) | 1 line fix deprecation warnings in tests ........ ................
* Implement the PEP 302 protocol for get_filename() asBrett Cannon2009-07-206-27/+136
| | | | | | importlib.abc.ExecutionLoader. PyLoader now inherits from this ABC instead of InspectLoader directly. Both PyLoader and PyPycLoader provide concrete implementations of get_filename in terms of source_path and bytecode_path.
* Importlib's documentation said that importlib.abc.PyLoader inherited fromBrett Cannon2009-07-203-15/+66
| | | | | | | | | importlib.abc.ResourceLoader, when in fact it did not. Fixed the ABC to inherit as documented. This doesn't introduce an backwards-incompatiblity as the code in PyLoader already required the single method ResourceLoader defined as an abstract method.
* Remove custom test-skipping code in importlib tests for unittest code.Brett Cannon2009-07-201-13/+14
|
* Some tests in importlib.test.source.test_abc_loader were testing what happensBrett Cannon2009-07-202-8/+20
| | | | | | | | when a loader is given missing or bad code object bytecode. Unfortunately an exception related to source paths was masking what the proper exception to test should be. Making the test explicitly set the environment fixed the test. The code being test was not affected.
* Update importlib.test.source.test_abc_loader to new features added in Python ↵Brett Cannon2009-07-191-17/+19
| | | | 3.1.
* merging revision 74100 from trunk:Kristján Valur Jónsson2009-07-191-1/+1
| | | | | http://bugs.python.org/issue6499 gzip.GzipFile may not exist as a parent class
* porting revision 74098 from trunk:Kristján Valur Jónsson2009-07-193-6/+25
| | | | | http://bugs.python.org/issue6499 zlib/gzip may not be present for all builds. Make xmlrpclib gracefully not supporg gzip encoding in this case