]> granicus.if.org Git - python/log
python
14 years agoMerged revisions 81154 via svnmerge from
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.
........

14 years agoMerged revisions 81152 via svnmerge from
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.
........

14 years agoMerged revisions 81145 via svnmerge from
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
........

14 years agoMake PyErr_Occurred return NULL if there is no current thread. Previously it
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.

14 years agoBlocked revisions 81137 via svnmerge
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)
........

14 years agoBlocked revisions 81135 via svnmerge (r81135 is a merge of r80163 from py3k)
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.
........

14 years agoRemove unnecessary assignments.
Mark Dickinson [Thu, 13 May 2010 11:52:22 +0000 (11:52 +0000)]
Remove unnecessary assignments.

14 years agoMerged revisions 81130 via svnmerge from
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.
........

14 years agoMerged revisions 81126 via svnmerge from
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.
........

14 years agoMerged revisions 81115 via svnmerge from
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
........

14 years agoMerged revisions 81108 via svnmerge from
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
........

14 years agoMerged revisions 81087,81106 via svnmerge from
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
........

14 years agoMerged revisions 81102 via svnmerge from
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.
........

14 years agoMerged revisions 81098 via svnmerge from
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.
........

14 years agoMerged revisions 81094 via svnmerge from
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).
........

14 years ago#8575 - Update and reorganize some _winreg contents.
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.

14 years agoIssue #8677: Make curses module PY_SSIZE_T_CLEAN.
Mark Dickinson [Tue, 11 May 2010 17:57:09 +0000 (17:57 +0000)]
Issue #8677:  Make curses module PY_SSIZE_T_CLEAN.

14 years agoadding myself to 'testing' interest area of maintainers.rst file
Giampaolo Rodolà [Tue, 11 May 2010 14:00:04 +0000 (14:00 +0000)]
adding myself to 'testing' interest area of maintainers.rst file

14 years agoIssue #8657: Make the audioop module PY_SSIZE_T_CLEAN.
Mark Dickinson [Tue, 11 May 2010 13:34:35 +0000 (13:34 +0000)]
Issue #8657:  Make the audioop module PY_SSIZE_T_CLEAN.

14 years agoMerged revisions 81079 via svnmerge from
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.
........

14 years agoRecorded merge of revisions 81077 via svnmerge from
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.
........

14 years agoremove now useless __ne__
Benjamin Peterson [Tue, 11 May 2010 00:07:48 +0000 (00:07 +0000)]
remove now useless __ne__

14 years agoMerged revisions 81073 via svnmerge from
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
........

14 years agoMerged revisions 81072 via svnmerge from
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
........

14 years agoMerged revisions 81049 via svnmerge from
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
........

14 years agoMerged revisions 81037 via svnmerge from
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.
........

14 years agoMerged revisions 81036 via svnmerge from
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.
........

14 years agoFix nits in the lexical analysis section: \u requires four digits, backtick is not...
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.

14 years agoremove reference to second argument to raise #8676
Benjamin Peterson [Mon, 10 May 2010 20:49:20 +0000 (20:49 +0000)]
remove reference to second argument to raise #8676

14 years agoMerged revisions 81055 via svnmerge from
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.
........

14 years agoMerged revisions 81045 via svnmerge from
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.
........

14 years agoMerged revisions 81043 via svnmerge from
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
........

14 years agoFix issue #4972: adds ftplib.FTP context manager protocol
Giampaolo Rodolà [Mon, 10 May 2010 14:53:29 +0000 (14:53 +0000)]
Fix issue #4972: adds ftplib.FTP context manager protocol

14 years agoRecorded merge of revisions 81029 via svnmerge from
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.
........

14 years agoBlocked revisions 81026 via svnmerge
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.
........

14 years agoFix test_urllib2 failure on OS X.
Mark Dickinson [Sun, 9 May 2010 12:16:29 +0000 (12:16 +0000)]
Fix test_urllib2 failure on OS X.

14 years agoMerged revisions 81022 via svnmerge from
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.
........

14 years agoBlocked revisions 81020 via svnmerge
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.
........

14 years agoReplace /s with os.sep in the new internal_execvpe test. Hopefully fixes
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.

14 years agomake condition more specific
Benjamin Peterson [Sun, 9 May 2010 03:22:58 +0000 (03:22 +0000)]
make condition more specific

14 years agoMerged revisions 81007 via svnmerge from
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.
........

14 years agoWrite tests for the new function os.fsencode()
Victor Stinner [Sun, 9 May 2010 03:15:33 +0000 (03:15 +0000)]
Write tests for the new function os.fsencode()

14 years agoremove svn:mergeinfo
Benjamin Peterson [Sat, 8 May 2010 21:05:35 +0000 (21:05 +0000)]
remove svn:mergeinfo

14 years agoBlocked revisions 81008 via svnmerge
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
........

14 years agoadd news for r81005
Benjamin Peterson [Sat, 8 May 2010 19:52:49 +0000 (19:52 +0000)]
add news for r81005

14 years agoCreate __pycache__ dir when the pyc path is explicitly given
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.

14 years agoBlocked revisions 80996,80998,81002 via svnmerge
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
........

14 years agoAdds a unittest for the internal os._execvpe function.
Gregory P. Smith [Sat, 8 May 2010 18:05:46 +0000 (18:05 +0000)]
Adds a unittest for the internal os._execvpe function.

14 years agoMerged revisions 80997 via svnmerge from
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.
........

14 years agoMerged revisions 80991 via svnmerge from
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
........

14 years agoMerged revisions 80990 via svnmerge from
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.
........

14 years agoMerged revisions 80986-80987 via svnmerge from
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
........

14 years agoreplace long with int
Benjamin Peterson [Sat, 8 May 2010 15:26:30 +0000 (15:26 +0000)]
replace long with int

14 years agoMerged revisions 80980 via svnmerge from
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.
........

14 years agoIssue #8644: Improve accuracy of timedelta.total_seconds, by doing intermediate
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.

14 years agoMerged revisions 80974 via svnmerge from
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.
........

14 years agoBlocked revisions 80964-80966,80969-80970 via svnmerge
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
........

14 years agoIssue #8514: Add os.fsencode() function (Unix only): encode a string to bytes
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.

14 years agoMerged revisions 80967 via svnmerge from
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.
........

14 years agoMerged revisions 80961 via svnmerge from
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.
........

14 years agoMerged revisions 80957 via svnmerge from
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.
........

14 years agoMerged revisions 80953 via svnmerge from
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
........

14 years agoposix_error_with_allocated_filename() decodes the filename with
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()

14 years agoPyErr_SetFromErrnoWithFilename() decodes the filename using
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()

14 years agoerr_input(): don't encode/decode the unicode message
Victor Stinner [Sat, 8 May 2010 00:07:07 +0000 (00:07 +0000)]
err_input(): don't encode/decode the unicode message

14 years agoMerged revisions 80946 via svnmerge from
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.
........

14 years agoMerged revisions 80939 via svnmerge from
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
........

14 years agoalias PyUnicode_CompareWithASCII
Benjamin Peterson [Fri, 7 May 2010 20:21:26 +0000 (20:21 +0000)]
alias PyUnicode_CompareWithASCII

14 years agoMerged revisions 80934 via svnmerge from
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
  ........
................

14 years agoMerged revisions 80932 via svnmerge from
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.
........

14 years agoMerged revisions 80926 via svnmerge from
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.
........

14 years agocorrect call
Benjamin Peterson [Fri, 7 May 2010 16:42:51 +0000 (16:42 +0000)]
correct call

14 years agoReplace PyUnicode_Decode(buf, strlen(buf), Py_FileSystemDefaultEncoding,
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).

14 years agoMerged revisions 80920 via svnmerge from
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.
........

14 years agoMerged revisions 80918 via svnmerge from
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.
........

14 years agoMerged revisions 80908 via svnmerge from
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.
........

14 years agoregrtest.py: disable replace_stdout() on Windows until it is fixed
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).

14 years agoFix test_os: os.environb doesn't exist 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

14 years agomodule_repr(): use %U to format the file name
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

14 years agocode_repr(): use %U to format 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.

14 years agoMerged revisions 80894,80896 via svnmerge from
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
........

14 years agorephrase
Benjamin Peterson [Thu, 6 May 2010 22:29:53 +0000 (22:29 +0000)]
rephrase

14 years agoself.skip -> self.skipTest
Benjamin Peterson [Thu, 6 May 2010 22:26:31 +0000 (22:26 +0000)]
self.skip -> self.skipTest

14 years agowrap long lines
Benjamin Peterson [Thu, 6 May 2010 22:25:42 +0000 (22:25 +0000)]
wrap long lines

14 years agouse concise skipping
Benjamin Peterson [Thu, 6 May 2010 22:23:58 +0000 (22:23 +0000)]
use concise skipping

14 years agoFix test_posix (regression introduced by r80885)
Victor Stinner [Thu, 6 May 2010 22:19:30 +0000 (22:19 +0000)]
Fix test_posix (regression introduced by r80885)

14 years agospacing and another versionadded
Benjamin Peterson [Thu, 6 May 2010 22:13:11 +0000 (22:13 +0000)]
spacing and another versionadded

14 years agoversionadded for environb
Benjamin Peterson [Thu, 6 May 2010 22:09:03 +0000 (22:09 +0000)]
versionadded for environb

14 years agoIssue #8603: Create a bytes version of os.environ for Unix
Victor Stinner [Thu, 6 May 2010 22:05:07 +0000 (22:05 +0000)]
Issue #8603: Create a bytes version of os.environ for Unix

Create os.environb mapping and os.getenvb() function, os.unsetenv() encodes str
argument to the file system encoding with the surrogateescape error handler
(instead of utf8/strict) and accepts bytes, and posix.environ keys and values
are bytes.

14 years agoMerged revisions 80882 via svnmerge from
Giampaolo Rodolà [Thu, 6 May 2010 20:21:57 +0000 (20:21 +0000)]
Merged revisions 80882 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80882 | giampaolo.rodola | 2010-05-06 22:19:32 +0200 (gio, 06 mag 2010) | 1 line

  adds handle_error(self):raise to test modules using asyncore to provide a clearer error message in case something goes wrong
........

14 years agoMerged revisions 80880 via svnmerge from
Giampaolo Rodolà [Thu, 6 May 2010 20:02:37 +0000 (20:02 +0000)]
Merged revisions 80880 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80880 | giampaolo.rodola | 2010-05-06 21:56:34 +0200 (gio, 06 mag 2010) | 1 line

  provides a clearer warning message when cheap inheritance with the underlying socket object is used
........

14 years agoMerged revisions 80875 via svnmerge from
Giampaolo Rodolà [Thu, 6 May 2010 18:06:30 +0000 (18:06 +0000)]
Merged revisions 80875 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80875 | giampaolo.rodola | 2010-05-06 19:57:06 +0200 (gio, 06 mag 2010) | 1 line

  Fix asyncore issues 8573 and 8483: _strerror might throw ValueError; asyncore.__getattr__ cheap inheritance caused confusing error messages when accessing undefined class attributes; added an alias for __str__ which now is used as a fallback for __repr__
........

14 years agoMerged revisions 80869 via svnmerge from
Antoine Pitrou [Thu, 6 May 2010 14:15:10 +0000 (14:15 +0000)]
Merged revisions 80869 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80869 | antoine.pitrou | 2010-05-06 16:11:23 +0200 (jeu., 06 mai 2010) | 3 lines

  `self` doesn't exist here
........

14 years agoMerged revisions 80857 via svnmerge from
Brian Curtin [Thu, 6 May 2010 03:05:50 +0000 (03:05 +0000)]
Merged revisions 80857 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80857 | brian.curtin | 2010-05-05 21:54:44 -0500 (Wed, 05 May 2010) | 5 lines

  Fix #7863. Properly identify Windows 7 and Server 2008 R2.

  Removed various unused code and added a way to correctly determine
  server vs. workstation via the registry.
........

14 years agoMerged revisions 80800 via svnmerge from
R. David Murray [Thu, 6 May 2010 01:41:14 +0000 (01:41 +0000)]
Merged revisions 80800 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

It turns out that email5 (py3k), because it is using unicode for the
payload, doesn't do the encoding to the output character set until later
in the process.  Specifically, charset.body_encode no longer does the
input-to-output charset conversion.  So the if test in the exception
clause in encoders.encode_7or8bit really is needed in email5.

So, this merge only merges the test, not the removal of the 'if'.

........
  r80800 | r.david.murray | 2010-05-05 13:31:03 -0400 (Wed, 05 May 2010) | 9 lines

  Issue #7472: remove unused code from email.encoders.encode_7or8bit.

  Yukihiro Nakadaira noticed a typo in encode_7or8bit that was trying
  to special case iso-2022 codecs.  It turns out that the code in
  question is never used, because whereas it was designed to trigger
  if the payload encoding was eight bit but its output encoding was
  7 bit, in practice the payload is always converted to the 7bit
  encoding before encode_7or8bit is called.  Patch by Shawat Anand.
........

14 years agoMerged revisions 80849 via svnmerge from
R. David Murray [Thu, 6 May 2010 01:09:27 +0000 (01:09 +0000)]
Merged revisions 80849 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80849 | r.david.murray | 2010-05-05 20:59:04 -0400 (Wed, 05 May 2010) | 4 lines

  Have the serve.py script announce the directory it is
  serving and which port it is serving it on (I can
  never remember the default port number it uses...)
........

14 years agoRecorded merge of revisions 80844-80845 via svnmerge from
Victor Stinner [Thu, 6 May 2010 00:08:46 +0000 (00:08 +0000)]
Recorded merge of revisions 80844-80845 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80844 | victor.stinner | 2010-05-06 01:33:33 +0200 (jeu., 06 mai 2010) | 5 lines

  Untabify Modules/posixmodule.c

  Run Antoine Pitrou "untabify" script + manual editions (OS/2 and some
  continuation lines).
........
  r80845 | victor.stinner | 2010-05-06 02:03:44 +0200 (jeu., 06 mai 2010) | 4 lines

  Untabify Modules/posixmodule.c (2)

  Fix some more functions by hand
........

I rewrote the patch for py3k from scratch using untabify + manual editions

14 years agoBlocked revisions 80839 via svnmerge
Mark Dickinson [Wed, 5 May 2010 22:44:34 +0000 (22:44 +0000)]
Blocked revisions 80839 via svnmerge

........
  r80839 | mark.dickinson | 2010-05-05 23:42:51 +0100 (Wed, 05 May 2010) | 3 lines

  Issue #1533:  test_range in test_builtin: fix test comment and add test
  for rejection of small floats.  Thanks Alexander Belopolsky.
........

14 years agoMerged revisions 80837 via svnmerge from
Tarek Ziadé [Wed, 5 May 2010 22:43:04 +0000 (22:43 +0000)]
Merged revisions 80837 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80837 | tarek.ziade | 2010-05-06 00:41:25 +0200 (Thu, 06 May 2010) | 1 line

  removed non needed lines
........

14 years agoIssue #1533: Merge added trunk range tests to py3k. (The fix itself
Mark Dickinson [Wed, 5 May 2010 22:39:58 +0000 (22:39 +0000)]
Issue #1533:  Merge added trunk range tests to py3k.  (The fix itself
doesn't need to be merged.)  Patch by Alexander Belopolsky.