Commit graph

44822 commits

Author SHA1 Message Date
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
Vinay Sajip
7504302875 Logging documentation update. 2010-12-19 06:02:31 +00:00
Michael Foord
cca5be2e4c Improvement to fix for issue 9926 to allow TestResult to be reused. 2010-12-19 04:07:28 +00:00
Michael Foord
f100dbd600 Fix minor issue in implementation of issue 10470. 2010-12-19 03:59:10 +00:00
Michael Foord
b3468f79ef Issue 10611. Issue 9857. Improve the way exception handling, including test skipping, is done inside TestCase.run 2010-12-19 03:19:47 +00:00
Ezio Melotti
addc6f5a21 #10573: use actual/expected consistently in unittest methods. The order of the args of assertCountEqual is also changed. 2010-12-18 20:00:04 +00:00
R. David Murray
63563cdf9d #9286: Fix the rfc822 parser to preserve whitespace in address local part.
Such addresses are not RFC compliant except under the 'obsolete syntax'
rules, but before this fix the whitespace was dropped from the input,
concatenating the pieces.  That breaks one of the principles of the
email package, that of preserving the input as much as possible.
It also denies the application program the opportunity to apply its
own heuristics to interpretation of such non-compliant addresses.

It is possible users of the email package were depending on the local
part always being a single token, so this fix will not be backported.
2010-12-18 18:25:38 +00:00
Antoine Pitrou
2b37ce7f30 NEWS entry for r87373 2010-12-18 17:59:18 +00:00
Georg Brandl
0bdfbfa276 #10723: add missing builtin exceptions. 2010-12-18 17:51:28 +00:00
Ezio Melotti
3044fa77a5 Use lowercase true/false in assertTrue/assertFalse messages. 2010-12-18 17:31:58 +00:00
R. David Murray
b68a7bc70c #10404: Use ctl-button-1 for context menus on OSX Idle.
This provides access to the context menus where they previously could
not be accessed due to the way OSX Tk binds buttons.  It also
improves platform consistency.

Patch by Ned Deily.
2010-12-18 17:19:10 +00:00
Senthil Kumaran
5466bf1c94 Fix Issue6791 - Limit the HTTP header readline with _MAXLENGTH. Patch by Antoine Pitrou 2010-12-18 16:55:23 +00:00
R. David Murray
32e1771daf #10728: the default for printing help is sys.stdout, not stderr. 2010-12-18 16:39:06 +00:00
Georg Brandl
77570e2d0e Fix typo. 2010-12-18 16:21:58 +00:00
Ezio Melotti
ac53ab64a6 #5587: add a repr to dict_proxy objects. Patch by David Stanek and Daniel Urban. 2010-12-18 14:59:43 +00:00
Antoine Pitrou
197c9c945e Make this a note again. 2010-12-18 12:33:06 +00:00