Commit graph

47866 commits

Author SHA1 Message Date
Victor Stinner
667d4b577f Issue #10763: subprocess.communicate() closes stdout and stderr if both are
pipes (bug specific to Windows).

Improve also the unit test: write a portable unit test.
2010-12-25 22:40:32 +00:00
Brian Quinlan
291151b7f4 Assign closed handles to None to make errors more obvious if they are used. 2010-12-25 00:18:27 +00:00
Brian Quinlan
a3015a6a82 Better reporting of test failures on Windows. 2010-12-24 23:10:41 +00:00
R. David Murray
5fff1479a7 Blocked revisions 87479 via svnmerge
........
  r87479 | r.david.murray | 2010-12-24 17:36:49 -0500 (Fri, 24 Dec 2010) | 8 lines

  #1693546: don't add quotes around RFC 2231 encoded values.

  The RFC is bit hard to understand on this point, but the examples
  clearly show that parameter values that are encoded according
  to its charset/language rules don't have surrounding quotes, and
  the ABNF does not allow for quotes.  So when we produce such
  encoded values, we no longer add quotes.
........
2010-12-24 22:41:22 +00:00
R. David Murray
dfd7eb0ba2 #1693546: don't add quotes around RFC 2231 encoded values.
The RFC is bit hard to understand on this point, but the examples
clearly show that parameter values that are encoded according
to its charset/language rules don't have surrounding quotes, and
the ABNF does not allow for quotes.  So when we produce such
encoded values, we no longer add quotes.
2010-12-24 22:36:49 +00:00
Terry Reedy
ddf53709ee Match current tracker name, though I do not know if still active. 2010-12-24 21:59:03 +00:00
Raymond Hettinger
57bd00a15b Adopt symmetric names for arguments (actual/expected --> first/second). 2010-12-24 21:51:48 +00:00
Vinay Sajip
1397ce1821 Logging documentation updates. 2010-12-24 12:03:48 +00:00
Raymond Hettinger
efbcb1b038 Keep helper functions private. 2010-12-24 11:24:00 +00:00
Raymond Hettinger
9d668dac68 Put diff output in useful order (when the elements were first seen). 2010-12-24 11:20:30 +00:00
Raymond Hettinger
f954217458 Add direct tests for the util functions. 2010-12-24 10:30:06 +00:00
Raymond Hettinger
1e7efdf2a0 Add news entry for 87471. 2010-12-24 10:04:00 +00:00
Raymond Hettinger
93e233d6e5 Improve diff for assertCountEqual() to actually show the differing counts.
New output looks like this:

Traceback (most recent call last):
  File "test.py", line 5, in test_ce
    self.assertCountEqual('abracadabra xx', 'simsalabim xx')
AssertionError: Element counts were not equal:
Expected 5, got 2:  'a'
Expected 2, got 1:  'b'
Expected 0, got 2:  'i'
Expected 0, got 2:  'm'
Expected 0, got 1:  'l'
Expected 0, got 2:  's'
Expected 1, got 0:  'c'
Expected 1, got 0:  'd'
Expected 2, got 0:  'r'
2010-12-24 10:02:22 +00:00
Alexander Belopolsky
fca8beed4a Added an XXX note to describe timedelta/timedelta feature. 2010-12-24 04:22:40 +00:00
Senthil Kumaran
1e991f2de5 Fix some mistakes- Issue3243 (r87399) Correcting the operator precendence
problem with Content-Length header and uncommenting the test.
2010-12-24 04:03:59 +00:00
Raymond Hettinger
c44befb82e Fix docstring. 2010-12-24 00:58:34 +00:00
Raymond Hettinger
6518f5e780 Fix docs and comment for r87454. 2010-12-24 00:52:54 +00:00
Raymond Hettinger
83961245b4 Add test for r87454. 2010-12-24 00:48:47 +00:00
Alexander Belopolsky
5512f32d91 Merged revisions 87463 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87463 | alexander.belopolsky | 2010-12-23 19:24:11 -0500 (Thu, 23 Dec 2010) | 1 line

  Issue #9063: Corrected the tzinfo example.
........
2010-12-24 00:29:04 +00:00
Alexander Belopolsky
b2eacd9129 Issue #9063: Corrected the tzinfo example. 2010-12-24 00:24:11 +00:00
Benjamin Peterson
bc78e37d46 update comment 2010-12-23 23:45:39 +00:00
Éric Araujo
1696f822e8 Fix syntax typo 2010-12-23 23:18:41 +00:00
Terry Reedy
d149c6c89c Issue 10730: mimetypes module - add .svgz to mimetypes.suffix_map and .svg to types_map.
Addition OKed by GB on IRC (R. David Murray). No backport.
2010-12-23 23:10:28 +00:00
Benjamin Peterson
31e8720324 kill some function imports 2010-12-23 22:53:42 +00:00
Benjamin Peterson
a91dd1e411 use native tenary condition 2010-12-23 22:49:38 +00:00
Benjamin Peterson
9e335fb3c5 Merged revisions 87455 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87455 | benjamin.peterson | 2010-12-23 16:17:42 -0600 (Thu, 23 Dec 2010) | 1 line

  fix docstring
........
2010-12-23 22:20:16 +00:00
Benjamin Peterson
5793e6f4b0 fix docstring 2010-12-23 22:17:42 +00:00
Raymond Hettinger
d65a901aed Fix buglet. If the input was an iterator, the fallback would occur after
part of the iterator had been consumed.   Also, fix argument names which
did not match the docs and were a bit misleading.
2010-12-23 21:54:02 +00:00
R. David Murray
42d983f487 Blocked revisions 87451 via svnmerge
........
  r87451 | r.david.murray | 2010-12-23 15:35:46 -0500 (Thu, 23 Dec 2010) | 4 lines

  #1155362: allow hh:mm:ss-uuuu like we allow hh:mm:ss+uuuu in parsedate_tz

  Original patch by Thomas Herve.
........
2010-12-23 20:37:28 +00:00
R. David Murray
4a62e89728 #1155362: allow hh:mm:ss-uuuu like we allow hh:mm:ss+uuuu in parsedate_tz
Original patch by Thomas Herve.
2010-12-23 20:35:46 +00:00
R. David Murray
46c6fd605e Merged revisions 87448 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87448 | r.david.murray | 2010-12-23 14:44:49 -0500 (Thu, 23 Dec 2010) | 4 lines

  #4496: remove misleading comment and note that self.handlers is obsolete.

  self.handlers is still used in one urllib2 test, but not by the code iteslf.
........
2010-12-23 19:47:37 +00:00
R. David Murray
25b8cca6e8 #4496: remove misleading comment and note that self.handlers is obsolete.
self.handlers is still used in one urllib2 test, but not by the code iteslf.
2010-12-23 19:44:49 +00:00
Éric Araujo
a63c240847 Fix typo in superclass method name 2010-12-23 19:13:05 +00:00
Éric Araujo
413d7b4f24 Nits: use a real boolean, make one docstring more similar to the other ones 2010-12-23 18:44:31 +00:00
Éric Araujo
d699255b42 Fix small inaccuracy: there is no index function 2010-12-23 18:41:33 +00:00
Alexander Belopolsky
c10abb42fb Merged revisions 87443 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87443 | alexander.belopolsky | 2010-12-22 21:58:25 -0500 (Wed, 22 Dec 2010) | 1 line

  Issue #10587: Document the meaning of str methods.
........
2010-12-23 03:00:58 +00:00
Alexander Belopolsky
0d26798bbc Issue #10587: Document the meaning of str methods. 2010-12-23 02:58:25 +00:00
Alexander Belopolsky
86f65d5dbb Issue #10254: Fixed a crash and a regression introduced by the implementation of PRI 29. 2010-12-23 02:27:37 +00:00
Antoine Pitrou
70df8f8c67 Fix ResourceWarning in test_normalization 2010-12-22 22:19:15 +00:00
Michael Foord
eaedfcb400 Another trivial typo correction in whatsnew 2010-12-22 18:28:51 +00:00
Vinay Sajip
689b68ad2d Logging documentation updates. 2010-12-22 15:04:15 +00:00
Michael Foord
5e9b14c39e Minor typo corrections in whatsnew 2010-12-22 10:39:04 +00:00
Raymond Hettinger
f35a34cbab Add todo 2010-12-22 09:11:54 +00:00
Gregory P. Smith
14affb84ca fix a compiler warning about err_msg potentially being used uninitialized. 2010-12-22 05:22:17 +00:00
Alexander Belopolsky
b9cc00caab Removed unneeded #include 2010-12-22 02:35:20 +00:00
Alexander Belopolsky
a79a6765ce Merged revisions 87433 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87433 | alexander.belopolsky | 2010-12-21 20:37:36 -0500 (Tue, 21 Dec 2010) | 3 lines

  Both PEP 3131 and the current implementation use NFKC normalization
  for identifiers.  Fixed the documentation to agree.
........
2010-12-22 01:55:15 +00:00
Alexander Belopolsky
1a7a2e03b2 Both PEP 3131 and the current implementation use NFKC normalization
for identifiers.  Fixed the documentation to agree.
2010-12-22 01:37:36 +00:00
R. David Murray
30f9c8c684 Merged revisions 87430 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87430 | r.david.murray | 2010-12-21 16:53:37 -0500 (Tue, 21 Dec 2010) | 9 lines

  #4871: check that zipfile password is bytes, and give useful error message.

  Previously passing a string in as the password would fail either with
  an assertion error or a TypeError with a confusing error message.
  Note that a string can't be accepted since zipfile has no way to
  guess what encoding should be used to turn it into bytes.

  Patch by Victor Stinner.
........
2010-12-21 21:57:54 +00:00
R. David Murray
8d855d8304 #4871: check that zipfile password is bytes, and give useful error message.
Previously passing a string in as the password would fail either with
an assertion error or a TypeError with a confusing error message.
Note that a string can't be accepted since zipfile has no way to
guess what encoding should be used to turn it into bytes.

Patch by Victor Stinner.
2010-12-21 21:53:37 +00:00
Antoine Pitrou
6cfc5124f2 Merged revisions 87427 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
  r87427 | antoine.pitrou | 2010-12-21 22:20:59 +0100 (mar., 21 déc. 2010) | 3 lines

  Issue #10750: The `raw` attribute of buffered IO objects is now read-only.
........
2010-12-21 21:26:09 +00:00