Commit Graph

41698 Commits

Author SHA1 Message Date
Victor Stinner 9467b212f5 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.
2010-05-14 00:59:09 +00:00
Brett Cannon 84df1e6c21 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.
........
2010-05-14 00:33:40 +00:00
Brett Cannon bbb2d492bc 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.
........
2010-05-14 00:04:56 +00:00
Benjamin Peterson f9a444223c 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
........
2010-05-13 21:16:51 +00:00
Jeffrey Yasskin 8e0bdfd1d4 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.
2010-05-13 18:31:05 +00:00
Victor Stinner f55621115c 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)
........
2010-05-13 16:23:09 +00:00
Victor Stinner e445795b82 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.
........
2010-05-13 16:20:26 +00:00
Mark Dickinson d3697262f4 Remove unnecessary assignments. 2010-05-13 11:52:22 +00:00
Senthil Kumaran ead169d311 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.
........
2010-05-13 03:37:23 +00:00
Mark Dickinson 91f021fb70 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.
........
2010-05-12 19:54:51 +00:00
Antoine Pitrou 525807bf72 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
........
2010-05-12 14:05:24 +00:00
Fred Drake ade19175c8 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
........
2010-05-12 02:34:50 +00:00
Fred Drake 1587e3d1e6 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
........
2010-05-12 01:36:11 +00:00
Giampaolo Rodolà 340d7d2cc3 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.
........
2010-05-12 00:33:15 +00:00
Antoine Pitrou 53b2166f0b 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.
........
2010-05-11 23:46:02 +00:00
Antoine Pitrou c09c92fd81 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).
........
2010-05-11 23:36:40 +00:00
Brian Curtin 2d067c8138 #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.
2010-05-11 20:35:47 +00:00
Mark Dickinson e047cfa72e Issue #8677: Make curses module PY_SSIZE_T_CLEAN. 2010-05-11 17:57:09 +00:00
Giampaolo Rodolà a467d38b91 adding myself to 'testing' interest area of maintainers.rst file 2010-05-11 14:00:04 +00:00
Mark Dickinson 81fece2d63 Issue #8657: Make the audioop module PY_SSIZE_T_CLEAN. 2010-05-11 13:34:35 +00:00
Mark Dickinson 393b97a7b6 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.
........
2010-05-11 13:09:58 +00:00
Mark Dickinson 8c2b6f1f5a 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.
........
2010-05-11 09:23:07 +00:00
Benjamin Peterson 899e9a0e7a remove now useless __ne__ 2010-05-11 00:07:48 +00:00
Andrew M. Kuchling 2b14676f0f 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
........
2010-05-10 23:30:25 +00:00
Andrew M. Kuchling d6d058feae 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
........
2010-05-10 23:28:28 +00:00
Andrew M. Kuchling abc79cd6bb 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
........
2010-05-10 23:14:26 +00:00
Mark Dickinson cdd01d2ddb 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.
........
2010-05-10 21:37:34 +00:00
Mark Dickinson 22b20183d5 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.
........
2010-05-10 21:27:53 +00:00
Georg Brandl e43baaba73 Fix nits in the lexical analysis section: \u requires four digits, backtick is not allowed in source in 3.x. 2010-05-10 21:17:00 +00:00
Benjamin Peterson b496badc32 remove reference to second argument to raise #8676 2010-05-10 20:49:20 +00:00
Michael Foord f707aa7f8b 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.
........
2010-05-10 20:23:58 +00:00
Mark Dickinson 85eacea31e 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.
........
2010-05-10 16:27:45 +00:00
Giampaolo Rodolà 8fc1178cf8 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
........
2010-05-10 15:40:49 +00:00
Giampaolo Rodolà bd576b75b7 Fix issue #4972: adds ftplib.FTP context manager protocol 2010-05-10 14:53:29 +00:00
Antoine Pitrou f95a1b3c53 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.
........
2010-05-09 15:52:27 +00:00
Eric Smith bd25030019 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.
........
2010-05-09 14:09:25 +00:00
Mark Dickinson c3f45c25de Fix test_urllib2 failure on OS X. 2010-05-09 12:16:29 +00:00
Michael Foord ffa2e4ee55 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.
........
2010-05-09 09:59:35 +00:00
Mark Dickinson 04afd1fb52 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.
........
2010-05-09 09:30:53 +00:00
Gregory P. Smith 3ea0062e0b Replace /s with os.sep in the new internal_execvpe test. Hopefully fixes
this test on windows.
2010-05-09 03:36:42 +00:00
Benjamin Peterson 31191a9cc5 make condition more specific 2010-05-09 03:22:58 +00:00
Jean-Paul Calderone 6f137ca469 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.
........
2010-05-09 03:18:57 +00:00
Victor Stinner bf9bcab98e Write tests for the new function os.fsencode() 2010-05-09 03:15:33 +00:00
Benjamin Peterson 09fe64cdf9 remove svn:mergeinfo 2010-05-08 21:05:35 +00:00
Benjamin Peterson f4ba1cf93c 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
........
2010-05-08 21:03:44 +00:00
Benjamin Peterson e87c0fcd16 add news for r81005 2010-05-08 19:52:49 +00:00
Benjamin Peterson 25216baf32 Create __pycache__ dir when the pyc path is explicitly given
Patch from Arfrever Frehtes Taifersar Arahesis.
2010-05-08 19:52:21 +00:00
Benjamin Peterson e5da82ff4c 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
........
2010-05-08 18:57:34 +00:00
Gregory P. Smith 4ae377755a Adds a unittest for the internal os._execvpe function. 2010-05-08 18:05:46 +00:00
Michael Foord 73162197aa 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.
........
2010-05-08 17:10:05 +00:00