]>
granicus.if.org Git - python/log
Benjamin Peterson [Sat, 15 May 2010 17:42:02 +0000 (17:42 +0000)]
fix run-on sentence
Mark Dickinson [Sat, 15 May 2010 17:02:38 +0000 (17:02 +0000)]
Issue #8692: Improve performance of math.factorial:
(1) use a different algorithm that roughly halves the total number of
multiplications required and results in more balanced multiplications
(2) use a lookup table for small arguments
(3) fast accumulation of products in C integer arithmetic rather than
PyLong arithmetic when possible.
Typical speedup, from unscientific testing on a 64-bit laptop, is 4.5x
to 6.5x for arguments in the range 100 - 10000.
Patch by Daniel Stutzbach; extensive reviews by Alexander Belopolsky.
Victor Stinner [Sat, 15 May 2010 16:27:27 +0000 (16:27 +0000)]
Issue #8715: Create PyUnicode_EncodeFSDefault() function: Encode a Unicode
object to Py_FileSystemDefaultEncoding with the "surrogateescape" error
handler, return a bytes object. If Py_FileSystemDefaultEncoding is not set,
fall back to UTF-8.
Victor Stinner [Sat, 15 May 2010 13:14:32 +0000 (13:14 +0000)]
Enable shortcuts for common encodings in PyUnicode_AsEncodedString() for any
error handler, not only the default error handler (strict)
Victor Stinner [Sat, 15 May 2010 12:27:16 +0000 (12:27 +0000)]
Issue #8610: Load file system codec at startup, and display a fatal error on
failure. Set the file system encoding to utf-8 (instead of None) if getting
the locale encoding failed, or if nl_langinfo(CODESET) function is missing.
Stefan Krah [Sat, 15 May 2010 09:41:27 +0000 (09:41 +0000)]
Merged revisions 81185 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81185 | stefan.krah | 2010-05-15 11:31:08 +0200 (Sat, 15 May 2010) | 4 lines
If the timeout is exceeded, count the tests as skipped instead of just
issuing a warning.
........
Victor Stinner [Sat, 15 May 2010 01:40:41 +0000 (01:40 +0000)]
Fix test_capi for Windows: strip newline characters
Fix test_no_FatalError_infinite_loop() introduced by r81142 (issue #3605).
Victor Stinner [Fri, 14 May 2010 21:53:45 +0000 (21:53 +0000)]
Merged revisions 81179 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81179 | victor.stinner | 2010-05-14 23:52:26 +0200 (ven., 14 mai 2010) | 2 lines
Fix regression introduced by r81154 (Issue #5099, subprocess destructor)
........
Victor Stinner [Fri, 14 May 2010 16:35:39 +0000 (16:35 +0000)]
posix_listdir(), posix_readlink(): avoid temporary PyBytes object
Use directly PyUnicode_DecodeFSDefaultAndSize() instead of
PyBytes_FromStringAndSize() + PyUnicode_FromEncodedObject() if the argument is
unicode.
Victor Stinner [Fri, 14 May 2010 15:58:55 +0000 (15:58 +0000)]
Issue #8711: Document PyUnicode_DecodeFSDefault*() functions
* Add paragraph titles to c-api/unicode.rst.
* Fix PyUnicode_DecodeFSDefault*() comment: it now uses the "surrogateescape"
error handler (and not "replace")
* Remove "The function is intended to be used for paths and file names only
during bootstrapping process where the codecs are not set up." from
PyUnicode_FSConverter() comment: it is used after the bootstrapping and for
other purposes than file names
Victor Stinner [Fri, 14 May 2010 14:36:18 +0000 (14:36 +0000)]
Merged revisions 81163 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81163 | victor.stinner | 2010-05-14 16:20:07 +0200 (ven., 14 mai 2010) | 2 lines
Doc: replace PEP xxx by :pep:`xxx` to create a link on the PEP
........
Victor Stinner [Fri, 14 May 2010 00:59:09 +0000 (00:59 +0000)]
Issue #4653: fix typo in flush_std_files()
Don't call sys.stderr.flush() if sys has no stderr attribute or if
sys.stderr==None.
Brett Cannon [Fri, 14 May 2010 00:33:40 +0000 (00:33 +0000)]
Merged revisions 81154 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81154 | brett.cannon | 2010-05-13 17:21:48 -0700 (Thu, 13 May 2010) | 15 lines
subprocess.Popen.__del__ referenced global objects, which is a no-no thanks to
interpreter shutdown semantics. Same issue goes for the methods that __del__
called. Now all the methods capture the global objects it needs as default
values to private parameters (could have stuck them on the class object itself,
but since the objects have nothing directly to do with the class that seemed
wrong).
There is no test as making one that works is hard. This patch was
verified against a consistently failing test in Mercurial's test suite, though,
so it has been tested in some regard.
Closes issue #5099. Thanks to Mary Stern for the bug report and Gabriel
Genellina for writing another patch for the same issue and attempting to write
a test.
........
Brett Cannon [Fri, 14 May 2010 00:04:56 +0000 (00:04 +0000)]
Merged revisions 81152 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81152 | brett.cannon | 2010-05-13 16:59:41 -0700 (Thu, 13 May 2010) | 3 lines
test_site was failing under darwin for non-framework builds because a test was
assuming framework-specific site-packages directories were being used.
........
Benjamin Peterson [Thu, 13 May 2010 21:16:51 +0000 (21:16 +0000)]
Merged revisions 81145 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81145 | benjamin.peterson | 2010-05-13 16:14:10 -0500 (Thu, 13 May 2010) | 1 line
rip out mention of types.ListType #8703
........
Jeffrey Yasskin [Thu, 13 May 2010 18:31:05 +0000 (18:31 +0000)]
Make PyErr_Occurred return NULL if there is no current thread. Previously it
would Py_FatalError, which called PyErr_Occurred, resulting in a semi-infinite
recursion.
Fixes issue 3605.
Victor Stinner [Thu, 13 May 2010 16:23:09 +0000 (16:23 +0000)]
Blocked revisions 81137 via svnmerge
........
r81137 | victor.stinner | 2010-05-13 18:22:15 +0200 (jeu., 13 mai 2010) | 4 lines
Fix verb tense in skip message.
Ooops, merge also r80334 (patch by r.david.murray)
........
Victor Stinner [Thu, 13 May 2010 16:20:26 +0000 (16:20 +0000)]
Blocked revisions 81135 via svnmerge (r81135 is a merge of r80163 from py3k)
........
r81135 | victor.stinner | 2010-05-13 18:18:14 +0200 (jeu., 13 mai 2010) | 6 lines
Issue #8422, test_genericpath: skip the creation of a directory with an invalid
UTF name on Mac OS X because the OS deny it (the name have to be a valid UTF8
string).
Merge r80163 from py3k branch.
........
Mark Dickinson [Thu, 13 May 2010 11:52:22 +0000 (11:52 +0000)]
Remove unnecessary assignments.
Senthil Kumaran [Thu, 13 May 2010 03:37:23 +0000 (03:37 +0000)]
Merged revisions 81130 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81130 | senthil.kumaran | 2010-05-13 08:55:21 +0530 (Thu, 13 May 2010) | 3 lines
Fix Issue8657 - adding git and git+ssh as know schemes.
........
Mark Dickinson [Wed, 12 May 2010 19:54:51 +0000 (19:54 +0000)]
Merged revisions 81126 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81126 | mark.dickinson | 2010-05-12 20:53:36 +0100 (Wed, 12 May 2010) | 1 line
Fix unused variable in test_factorial.
........
Antoine Pitrou [Wed, 12 May 2010 14:05:24 +0000 (14:05 +0000)]
Merged revisions 81115 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81115 | antoine.pitrou | 2010-05-12 16:02:34 +0200 (mer., 12 mai 2010) | 3 lines
Improve _ssl.c formatting
........
Fred Drake [Wed, 12 May 2010 02:34:50 +0000 (02:34 +0000)]
Merged revisions 81108 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81108 | fred.drake | 2010-05-11 22:24:50 -0400 (Tue, 11 May 2010) | 4 lines
- clarify Attr.name comment on the presence of colons in namespace mode
- document Attr.value
- wrap some long lines
........
Fred Drake [Wed, 12 May 2010 01:36:11 +0000 (01:36 +0000)]
Merged revisions 81087,81106 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81087 | fred.drake | 2010-05-11 14:12:27 -0400 (Tue, 11 May 2010) | 2 lines
fix typo
........
r81106 | fred.drake | 2010-05-11 21:22:03 -0400 (Tue, 11 May 2010) | 2 lines
fix error introduced in previous commit, and the adjacent additional typo
........
Giampaolo Rodolà [Wed, 12 May 2010 00:33:15 +0000 (00:33 +0000)]
Merged revisions 81102 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81102 | giampaolo.rodola | 2010-05-12 02:29:27 +0200 (mer, 12 mag 2010) | 1 line
Removed the assertion that dispatcher.connected attribute must be False after a single connect() call. Solaris and FreeBSD buildbots failures showed how connect() can succeed even in a single call. All bo failures should definitively be fixed now.
........
Antoine Pitrou [Tue, 11 May 2010 23:46:02 +0000 (23:46 +0000)]
Merged revisions 81098 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81098 | antoine.pitrou | 2010-05-12 01:42:28 +0200 (mer., 12 mai 2010) | 5 lines
Issue #8681: Make the zlib module's error messages more informative when
the zlib itself doesn't give any detailed explanation.
........
Antoine Pitrou [Tue, 11 May 2010 23:36:40 +0000 (23:36 +0000)]
Merged revisions 81094 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81094 | antoine.pitrou | 2010-05-12 01:32:31 +0200 (mer., 12 mai 2010) | 6 lines
Issue #8672: Add a zlib test ensuring that an incomplete stream can be
handled by a decompressor object without errors (it returns incomplete
uncompressed data).
........
Brian Curtin [Tue, 11 May 2010 20:35:47 +0000 (20:35 +0000)]
#8575 - Update and reorganize some _winreg contents.
I've removed the hopeful note about a future higher-level module since
it's been in there for quite a long time and nothing of the sort has
come up. There are a few places where markup was added to cross-reference
other sections, and many of the external links have been removed and now
point to newly created sections containing previously undocumented
information.
The Value Types section was created and it's contents were taken from
a function-specific area, since it applies to more than just that
function. It fits in better with the other newly documented constants.
Mark Dickinson [Tue, 11 May 2010 17:57:09 +0000 (17:57 +0000)]
Issue #8677: Make curses module PY_SSIZE_T_CLEAN.
Giampaolo Rodolà [Tue, 11 May 2010 14:00:04 +0000 (14:00 +0000)]
adding myself to 'testing' interest area of maintainers.rst file
Mark Dickinson [Tue, 11 May 2010 13:34:35 +0000 (13:34 +0000)]
Issue #8657: Make the audioop module PY_SSIZE_T_CLEAN.
Mark Dickinson [Tue, 11 May 2010 13:09:58 +0000 (13:09 +0000)]
Merged revisions 81079 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81079 | mark.dickinson | 2010-05-11 14:05:30 +0100 (Tue, 11 May 2010) | 1 line
Issue #8674: fix another bogus overflow check in audioop module.
........
Mark Dickinson [Tue, 11 May 2010 09:23:07 +0000 (09:23 +0000)]
Recorded merge of revisions 81077 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81077 | mark.dickinson | 2010-05-11 09:55:06 +0100 (Tue, 11 May 2010) | 3 lines
Issue #8510: Remove nested 'main' functions (causing failure) in 3 configure tests;
remove some unnecessary '#include "confdefs.h"' lines. Thanks Roumen Petrov.
........
Benjamin Peterson [Tue, 11 May 2010 00:07:48 +0000 (00:07 +0000)]
remove now useless __ne__
Andrew M. Kuchling [Mon, 10 May 2010 23:30:25 +0000 (23:30 +0000)]
Merged revisions 81073 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81073 | andrew.kuchling | 2010-05-10 19:27:01 -0400 (Mon, 10 May 2010) | 1 line
Use ';' after initialization macros to avoid confusing re-indenters
........
Andrew M. Kuchling [Mon, 10 May 2010 23:28:28 +0000 (23:28 +0000)]
Merged revisions 81072 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81072 | andrew.kuchling | 2010-05-10 19:24:09 -0400 (Mon, 10 May 2010) | 1 line
Break long line in macros
........
Andrew M. Kuchling [Mon, 10 May 2010 23:14:26 +0000 (23:14 +0000)]
Merged revisions 81049 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81049 | andrew.kuchling | 2010-05-10 13:18:25 -0400 (Mon, 10 May 2010) | 1 line
Move { out of #if...#else block; this confuses Emacs' C-mode
........
Mark Dickinson [Mon, 10 May 2010 21:37:34 +0000 (21:37 +0000)]
Merged revisions 81037 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81037 | mark.dickinson | 2010-05-09 21:42:09 +0100 (Sun, 09 May 2010) | 1 line
Wrap multiline macros in a 'do {} while(0)', for safety.
........
Mark Dickinson [Mon, 10 May 2010 21:27:53 +0000 (21:27 +0000)]
Merged revisions 81036 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81036 | mark.dickinson | 2010-05-09 21:30:29 +0100 (Sun, 09 May 2010) | 1 line
Post-detabification cleanup: whitespace fixes and long line rewraps only.
........
Georg Brandl [Mon, 10 May 2010 21:17:00 +0000 (21:17 +0000)]
Fix nits in the lexical analysis section: \u requires four digits, backtick is not allowed in source in 3.x.
Benjamin Peterson [Mon, 10 May 2010 20:49:20 +0000 (20:49 +0000)]
remove reference to second argument to raise #8676
Michael Foord [Mon, 10 May 2010 20:23:58 +0000 (20:23 +0000)]
Merged revisions 81055 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81055 | michael.foord | 2010-05-10 21:21:16 +0100 (Mon, 10 May 2010) | 1 line
Improving help message for python -m unittest. Issue 8303.
........
Mark Dickinson [Mon, 10 May 2010 16:27:45 +0000 (16:27 +0000)]
Merged revisions 81045 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81045 | mark.dickinson | 2010-05-10 17:07:42 +0100 (Mon, 10 May 2010) | 3 lines
Issue #8674: Fix incorrect and UB-inducing overflow checks in audioop
module. Thanks Tomas Hoger for the patch.
........
Giampaolo Rodolà [Mon, 10 May 2010 15:40:49 +0000 (15:40 +0000)]
Merged revisions 81043 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81043 | giampaolo.rodola | 2010-05-10 17:33:22 +0200 (lun, 10 mag 2010) | 1 line
Issue #8490: adds a more solid test suite for asyncore
........
Giampaolo Rodolà [Mon, 10 May 2010 14:53:29 +0000 (14:53 +0000)]
Fix issue #4972: adds ftplib.FTP context manager protocol
Antoine Pitrou [Sun, 9 May 2010 15:52:27 +0000 (15:52 +0000)]
Recorded merge of revisions 81029 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines
Untabify C files. Will watch buildbots.
........
Eric Smith [Sun, 9 May 2010 14:09:25 +0000 (14:09 +0000)]
Blocked revisions 81026 via svnmerge
........
r81026 | eric.smith | 2010-05-09 10:04:59 -0400 (Sun, 09 May 2010) | 1 line
Issue 8671: Whitespace fix.
........
Mark Dickinson [Sun, 9 May 2010 12:16:29 +0000 (12:16 +0000)]
Fix test_urllib2 failure on OS X.
Michael Foord [Sun, 9 May 2010 09:59:35 +0000 (09:59 +0000)]
Merged revisions 81022 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81022 | michael.foord | 2010-05-09 11:58:25 +0200 (Sun, 09 May 2010) | 1 line
Adding a test for unittest.BaseTestSuite.
........
Mark Dickinson [Sun, 9 May 2010 09:30:53 +0000 (09:30 +0000)]
Blocked revisions 81020 via svnmerge
........
r81020 | mark.dickinson | 2010-05-09 10:30:06 +0100 (Sun, 09 May 2010) | 3 lines
Issue #8644: Improve accuracy of timedelta.total_seconds method.
(Backport of r80979 to py3k.) Thanks Alexander Belopolsky.
........
Gregory P. Smith [Sun, 9 May 2010 03:36:42 +0000 (03:36 +0000)]
Replace /s with os.sep in the new internal_execvpe test. Hopefully fixes
this test on windows.
Benjamin Peterson [Sun, 9 May 2010 03:22:58 +0000 (03:22 +0000)]
make condition more specific
Jean-Paul Calderone [Sun, 9 May 2010 03:18:57 +0000 (03:18 +0000)]
Merged revisions 81007 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r81007 | jean-paul.calderone | 2010-05-08 16:06:02 -0400 (Sat, 08 May 2010) | 1 line
Skip signal handler re-installation if it is not necessary. Issue 8354.
........
Victor Stinner [Sun, 9 May 2010 03:15:33 +0000 (03:15 +0000)]
Write tests for the new function os.fsencode()
Benjamin Peterson [Sat, 8 May 2010 21:05:35 +0000 (21:05 +0000)]
remove svn:mergeinfo
Benjamin Peterson [Sat, 8 May 2010 21:03:44 +0000 (21:03 +0000)]
Blocked revisions 81008 via svnmerge
........
r81008 | benjamin.peterson | 2010-05-08 15:59:42 -0500 (Sat, 08 May 2010) | 1 line
remove svn:mergeinfo property
........
Benjamin Peterson [Sat, 8 May 2010 19:52:49 +0000 (19:52 +0000)]
add news for r81005
Benjamin Peterson [Sat, 8 May 2010 19:52:21 +0000 (19:52 +0000)]
Create __pycache__ dir when the pyc path is explicitly given
Patch from Arfrever Frehtes Taifersar Arahesis.
Benjamin Peterson [Sat, 8 May 2010 18:57:34 +0000 (18:57 +0000)]
Blocked revisions 80996,80998,81002 via svnmerge
........
r80996 | benjamin.peterson | 2010-05-08 12:05:19 -0500 (Sat, 08 May 2010) | 1 line
update pydoc-topics
........
r80998 | benjamin.peterson | 2010-05-08 12:08:17 -0500 (Sat, 08 May 2010) | 1 line
bump version to 2.7 beta 2
........
r81002 | benjamin.peterson | 2010-05-08 13:53:42 -0500 (Sat, 08 May 2010) | 1 line
towards 2.7 release candidate 1
........
Gregory P. Smith [Sat, 8 May 2010 18:05:46 +0000 (18:05 +0000)]
Adds a unittest for the internal os._execvpe function.
Michael Foord [Sat, 8 May 2010 17:10:05 +0000 (17:10 +0000)]
Merged revisions 80997 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80997 | michael.foord | 2010-05-08 19:06:25 +0200 (Sat, 08 May 2010) | 1 line
unittest: issue 8301. Adding functions to test suites no longer crashes.
........
Benjamin Peterson [Sat, 8 May 2010 16:51:16 +0000 (16:51 +0000)]
Merged revisions 80991 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80991 | benjamin.peterson | 2010-05-08 11:44:52 -0500 (Sat, 08 May 2010) | 1 line
run and fix enumerate start test cases #8636
........
Michael Foord [Sat, 8 May 2010 16:46:14 +0000 (16:46 +0000)]
Merged revisions 80990 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80990 | michael.foord | 2010-05-08 18:40:52 +0200 (Sat, 08 May 2010) | 1 line
Updating documentation and adding docstrings to unittest.TestCase.assertRegexpMatches and assertNotRegexpMatches. Issue 8038.
........
Benjamin Peterson [Sat, 8 May 2010 15:51:23 +0000 (15:51 +0000)]
Merged revisions 80986-80987 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80986 | benjamin.peterson | 2010-05-08 10:41:44 -0500 (Sat, 08 May 2010) | 1 line
r80967 introduced a new scheme
........
r80987 | benjamin.peterson | 2010-05-08 10:42:29 -0500 (Sat, 08 May 2010) | 1 line
add underscore
........
Benjamin Peterson [Sat, 8 May 2010 15:26:30 +0000 (15:26 +0000)]
replace long with int
Michael Foord [Sat, 8 May 2010 15:13:42 +0000 (15:13 +0000)]
Merged revisions 80980 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80980 | michael.foord | 2010-05-08 17:09:37 +0200 (Sat, 08 May 2010) | 1 line
Documenting test discovery from package name and potential problems with test discovery importing tests from the wrong location. Issue 7780 and issue 8547.
........
Mark Dickinson [Sat, 8 May 2010 14:35:02 +0000 (14:35 +0000)]
Issue #8644: Improve accuracy of timedelta.total_seconds, by doing intermediate
computations with integer arithmetic instead of floating point.
td.total_seconds() now agrees with td / timedelta(seconds = 1).
Thanks Alexander Belopolsky for the patch.
Michael Foord [Sat, 8 May 2010 13:23:31 +0000 (13:23 +0000)]
Merged revisions 80974 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80974 | michael.foord | 2010-05-08 15:20:07 +0200 (Sat, 08 May 2010) | 1 line
Issue 7780. Adding a test for unittest test discovery from a dotted path.
........
Matthias Klose [Sat, 8 May 2010 11:12:56 +0000 (11:12 +0000)]
Blocked revisions 80964-80966,80969-80970 via svnmerge
........
r80964 | matthias.klose | 2010-05-08 12:00:28 +0200 (Sa, 08 Mai 2010) | 2 lines
- Issue #8510: Update to autoconf2.65.
........
r80965 | matthias.klose | 2010-05-08 12:14:46 +0200 (Sa, 08 Mai 2010) | 2 lines
- configure.in: Replace AC_HELP_STRING with AS_HELP_STRING
........
r80966 | matthias.klose | 2010-05-08 12:17:27 +0200 (Sa, 08 Mai 2010) | 2 lines
configure.in: s/AC_AIX/AC_USE_SYSTEM_EXTENSIONS/
........
r80969 | matthias.klose | 2010-05-08 13:01:39 +0200 (Sa, 08 Mai 2010) | 3 lines
configure.in: convert all obsolete AC_TRY_* macros to AC_*_IFELSE,
only whitespace changes in generated configure (diff -uEwB).
........
r80970 | matthias.klose | 2010-05-08 13:04:18 +0200 (Sa, 08 Mai 2010) | 4 lines
configure.in: Avoid autoconf warning: Assume C89 semantics that
RETSIGTYPE is always void (issue #8510).
pyconfig.h: Regenerate
........
Victor Stinner [Sat, 8 May 2010 11:10:09 +0000 (11:10 +0000)]
Issue #8514: Add os.fsencode() function (Unix only): encode a string to bytes
for use in the file system, environment variables or the command line.
Ronald Oussoren [Sat, 8 May 2010 10:49:43 +0000 (10:49 +0000)]
Merged revisions 80967 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80967 | ronald.oussoren | 2010-05-08 12:29:06 +0200 (Sat, 08 May 2010) | 4 lines
Issue #8084: ensure that the --user directory
conforms to platforms standars on OSX when
using a python framework.
........
Mark Dickinson [Sat, 8 May 2010 08:03:09 +0000 (08:03 +0000)]
Merged revisions 80961 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80961 | mark.dickinson | 2010-05-08 09:01:19 +0100 (Sat, 08 May 2010) | 2 lines
Issue #8659: Remove redundant ABS calls. Thanks Daniel Stutzbach.
........
Senthil Kumaran [Sat, 8 May 2010 05:12:05 +0000 (05:12 +0000)]
Merged revisions 80957 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80957 | senthil.kumaran | 2010-05-08 10:30:11 +0530 (Sat, 08 May 2010) | 2 lines
Fixing the errors trigerred in test_urllib2net. Related to issue8656.
........
Senthil Kumaran [Sat, 8 May 2010 03:29:09 +0000 (03:29 +0000)]
Merged revisions 80953 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80953 | senthil.kumaran | 2010-05-08 08:41:50 +0530 (Sat, 08 May 2010) | 3 lines
Fix Issue8656 - urllib2 mangles file://-scheme URLs
........
Victor Stinner [Sat, 8 May 2010 00:36:42 +0000 (00:36 +0000)]
posix_error_with_allocated_filename() decodes the filename with
PyUnicode_DecodeFSDefaultAndSize() and call
PyErr_SetFromErrnoWithFilenameObject() instead of
PyErr_SetFromErrnoWithFilename()
Victor Stinner [Sat, 8 May 2010 00:35:33 +0000 (00:35 +0000)]
PyErr_SetFromErrnoWithFilename() decodes the filename using
PyUnicode_DecodeFSDefault() instead of PyUnicode_FromString()
Victor Stinner [Sat, 8 May 2010 00:07:07 +0000 (00:07 +0000)]
err_input(): don't encode/decode the unicode message
Michael Foord [Fri, 7 May 2010 23:42:40 +0000 (23:42 +0000)]
Merged revisions 80946 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80946 | michael.foord | 2010-05-08 01:39:38 +0200 (Sat, 08 May 2010) | 1 line
Issue 8547 - detecting and reporting that modules have been imported from the wrong location under test discovery.
........
Benjamin Peterson [Fri, 7 May 2010 20:47:43 +0000 (20:47 +0000)]
Merged revisions 80939 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80939 | benjamin.peterson | 2010-05-07 15:45:07 -0500 (Fri, 07 May 2010) | 1 line
revert r80932; it breaks windows
........
Benjamin Peterson [Fri, 7 May 2010 20:21:26 +0000 (20:21 +0000)]
alias PyUnicode_CompareWithASCII
Benjamin Peterson [Fri, 7 May 2010 19:10:11 +0000 (19:10 +0000)]
Merged revisions 80934 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
................
r80934 | benjamin.peterson | 2010-05-07 13:58:23 -0500 (Fri, 07 May 2010) | 69 lines
Merged revisions 79911,79916-79917,80018,80418,80572-80573,80635-80639,80668,80922 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r79911 | benjamin.peterson | 2010-04-09 15:38:53 -0500 (Fri, 09 Apr 2010) | 1 line
use absolute import
........
r79916 | benjamin.peterson | 2010-04-09 16:05:21 -0500 (Fri, 09 Apr 2010) | 1 line
generalize detection of __future__ imports and attach them to the tree
........
r79917 | benjamin.peterson | 2010-04-09 16:11:44 -0500 (Fri, 09 Apr 2010) | 1 line
don't try to 'fix' relative imports when absolute_import is enabled #8858
........
r80018 | benjamin.peterson | 2010-04-12 16:12:12 -0500 (Mon, 12 Apr 2010) | 4 lines
prevent diffs from being mangled is multiprocess mode #6409
Patch by George Boutsioukis.
........
r80418 | benjamin.peterson | 2010-04-23 16:00:03 -0500 (Fri, 23 Apr 2010) | 1 line
remove unhelpful description
........
r80572 | benjamin.peterson | 2010-04-27 20:33:54 -0500 (Tue, 27 Apr 2010) | 1 line
use unicode literals
........
r80573 | jeffrey.yasskin | 2010-04-27 23:08:27 -0500 (Tue, 27 Apr 2010) | 6 lines
Don't transform imports that are already relative. 2to3 turned
from . import refactor
into
from .. import refactor
which broke the transformation of 2to3 itself.
........
r80635 | benjamin.peterson | 2010-04-29 16:02:23 -0500 (Thu, 29 Apr 2010) | 1 line
remove imports
........
r80636 | benjamin.peterson | 2010-04-29 16:02:41 -0500 (Thu, 29 Apr 2010) | 1 line
unicode literal
........
r80637 | benjamin.peterson | 2010-04-29 16:03:42 -0500 (Thu, 29 Apr 2010) | 1 line
must pass a string to Number
........
r80638 | benjamin.peterson | 2010-04-29 16:05:34 -0500 (Thu, 29 Apr 2010) | 1 line
unicode literals
........
r80639 | benjamin.peterson | 2010-04-29 16:06:09 -0500 (Thu, 29 Apr 2010) | 1 line
pass string to Number
........
r80668 | jeffrey.yasskin | 2010-04-30 18:02:47 -0500 (Fri, 30 Apr 2010) | 4 lines
Make 2to3 run under Python 2.5 so that the benchmark suite at
http://hg.python.org/benchmarks/ can use it and still run on implementations
that haven't gotten to 2.6 yet. Fixes issue 8566.
........
r80922 | benjamin.peterson | 2010-05-07 11:06:25 -0500 (Fri, 07 May 2010) | 1 line
prevent xrange transformation from wrapping range calls it produces in list
........
................
Michael Foord [Fri, 7 May 2010 18:18:14 +0000 (18:18 +0000)]
Merged revisions 80932 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80932 | michael.foord | 2010-05-07 20:16:19 +0200 (Fri, 07 May 2010) | 1 line
Issue 8547 - detecting and reporting that modules have been imported from the wrong location under test discovery.
........
Antoine Pitrou [Fri, 7 May 2010 17:04:02 +0000 (17:04 +0000)]
Merged revisions 80926 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80926 | antoine.pitrou | 2010-05-07 18:50:34 +0200 (ven., 07 mai 2010) | 5 lines
Issue #8571: Fix an internal error when compressing or decompressing a
chunk larger than 1GB with the zlib module's compressor and decompressor
objects.
........
Benjamin Peterson [Fri, 7 May 2010 16:42:51 +0000 (16:42 +0000)]
correct call
Victor Stinner [Fri, 7 May 2010 16:34:53 +0000 (16:34 +0000)]
Replace PyUnicode_Decode(buf, strlen(buf), Py_FileSystemDefaultEncoding,
"surrogateescape") by PyUnicode_DecodeFSDefault(val).
Michael Foord [Fri, 7 May 2010 16:00:30 +0000 (16:00 +0000)]
Merged revisions 80920 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80920 | michael.foord | 2010-05-07 17:52:05 +0200 (Fri, 07 May 2010) | 1 line
Adding tests for unittest command line handling of buffer, catchbreak and failfast.
........
Michael Foord [Fri, 7 May 2010 15:35:24 +0000 (15:35 +0000)]
Merged revisions 80918 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80918 | michael.foord | 2010-05-07 17:34:08 +0200 (Fri, 07 May 2010) | 1 line
Adding a test for unittest test discovery with dotted path name.
........
Senthil Kumaran [Fri, 7 May 2010 04:19:23 +0000 (04:19 +0000)]
Merged revisions 80908 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80908 | senthil.kumaran | 2010-05-07 09:37:29 +0530 (Fri, 07 May 2010) | 3 lines
Testsuite for RFC3986 based parsing scenario. Related Issue1462525.
........
Victor Stinner [Fri, 7 May 2010 00:57:12 +0000 (00:57 +0000)]
regrtest.py: disable replace_stdout() on Windows until it is fixed
See issue #8533 (problem with newlines on Windows).
Victor Stinner [Fri, 7 May 2010 00:54:14 +0000 (00:54 +0000)]
Fix test_os: os.environb doesn't exist on Windows
Victor Stinner [Fri, 7 May 2010 00:50:12 +0000 (00:50 +0000)]
module_repr(): use %U to format the file name
Avoid useless encode/decode of the filename
Victor Stinner [Fri, 7 May 2010 00:41:18 +0000 (00:41 +0000)]
code_repr(): use %U to format the filename
Avoid useless unicode decoding/recoding of the filename.
Benjamin Peterson [Thu, 6 May 2010 23:03:05 +0000 (23:03 +0000)]
Merged revisions 80894,80896 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r80894 | benjamin.peterson | 2010-05-06 17:33:46 -0500 (Thu, 06 May 2010) | 1 line
Availability gets its own line
........
r80896 | benjamin.peterson | 2010-05-06 17:49:28 -0500 (Thu, 06 May 2010) | 1 line
ensure that availability information is on its own line at the end of the function docs
........
Benjamin Peterson [Thu, 6 May 2010 22:29:53 +0000 (22:29 +0000)]
rephrase
Benjamin Peterson [Thu, 6 May 2010 22:26:31 +0000 (22:26 +0000)]
self.skip -> self.skipTest
Benjamin Peterson [Thu, 6 May 2010 22:25:42 +0000 (22:25 +0000)]
wrap long lines
Benjamin Peterson [Thu, 6 May 2010 22:23:58 +0000 (22:23 +0000)]
use concise skipping
Victor Stinner [Thu, 6 May 2010 22:19:30 +0000 (22:19 +0000)]
Fix test_posix (regression introduced by r80885)
Benjamin Peterson [Thu, 6 May 2010 22:13:11 +0000 (22:13 +0000)]
spacing and another versionadded
Benjamin Peterson [Thu, 6 May 2010 22:09:03 +0000 (22:09 +0000)]
versionadded for environb