Commit Graph

45037 Commits

Author SHA1 Message Date
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 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 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 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 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 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 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 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 7f8f41808b Issue #10750: The `raw` attribute of buffered IO objects is now read-only. 2010-12-21 21:20:59 +00:00
Raymond Hettinger cfee0e83eb Document the alternate format for :ref:. 2010-12-21 20:52:12 +00:00
Raymond Hettinger 6778fa9b2a Reference the release schedule 2010-12-21 20:09:55 +00:00
Raymond Hettinger 8ebe27f300 Deprecate assertDictContainsSubset() 2010-12-21 19:24:26 +00:00
Antoine Pitrou f259076790 Suggest sys.maxsize as a reliable way to know whether the interpreter is 64-bit.
(part of #10735)
2010-12-21 18:49:01 +00:00
R. David Murray e0436bcb24 Make test_compileall more robust by using -S to keep sys.path minimized.
Try this again, hopefully the right way this time.

Arfrever Taifersar Arahesis reported that test_compileall failed during Gentoo
install because it was tyring to write .pyc files to a read-only system
directory during test_no_args_compiles_path.  Having the tests call python
with -S should eliminate the system directories from the path.
2010-12-21 18:24:33 +00:00
R. David Murray 73a559d0c9 Fix the change made for issue 1243654.
Surprisingly, it turns out there was no test that exercised this code path.
2010-12-21 18:07:59 +00:00
R. David Murray 92812028f2 Revert incorrect patch made at the wrong time. 2010-12-20 19:04:51 +00:00
R. David Murray bf9004483d Make test_compileall more robust by using -S to keep sys.path minimized.
Arfrever Taifersar Arahesis reported that test_compileall failed during Gentoo
install because it was tyring to write .pyc files to a read-only system
directory during test_no_args_compiles_path.  Having subprocess call python
with -S should eliminate the system directories from the path.
2010-12-20 18:08:59 +00:00
Vinay Sajip 01094e1fe4 Logging documentation updates. 2010-12-19 13:41:26 +00:00
Vinay Sajip c63619bcf2 Logging documentation reorganised. 2010-12-19 12:56:57 +00:00
Georg Brandl 7ca6d90681 Tag 3.2 beta 2. 2010-12-19 12:37:34 +00:00
Georg Brandl 09a7df8301 #3243 follow-up: remove debugging print and fix docs; data is a bytes object. 2010-12-19 12:33:52 +00:00
Senthil Kumaran 7bc0d872dd Issue3243 - Support iterable bodies in httplib. Patch contributions by Xuanji Li and Chris AtLee. 2010-12-19 10:49:52 +00:00
Georg Brandl 8a60e94802 Bump to 3.2b2. 2010-12-19 10:30:28 +00:00
Georg Brandl c88435023c Fix markup error and update suspicious file. 2010-12-19 10:28:46 +00:00
Georg Brandl 3de338f47e Update pydoc topics. 2010-12-19 10:25:28 +00:00
Georg Brandl cf8a209ab7 Temporarily skip test failing with newer ttk. 2010-12-19 10:17:46 +00:00
Georg Brandl aedd2899c2 #6075: make idle work with both Carbon AquaTk and Cocoa AquaTk. Patch by Kevin Walzer and Ned Deily. 2010-12-19 10:10:32 +00:00