]>
granicus.if.org Git - python/log
Victor Stinner [Tue, 2 Mar 2010 23:20:02 +0000 (23:20 +0000)]
Issue #7820: The parser tokenizer restores all bytes in the right if the BOM
check fails.
Fix an assertion in pydebug mode.
Benjamin Peterson [Tue, 2 Mar 2010 23:02:02 +0000 (23:02 +0000)]
remove cross-version compatibility code
Benjamin Peterson [Tue, 2 Mar 2010 22:58:01 +0000 (22:58 +0000)]
remove code to avoid BaseException.message bug
Victor Stinner [Tue, 2 Mar 2010 22:44:42 +0000 (22:44 +0000)]
Issue #2973: Fix gcc warning on the 2nd argument of ASN1_item_d2i() and
method->d2i(): OpenSSL API changed in OpenSSL 0.9.6m. Patch written by Daniel
Black.
Florent Xicluna [Tue, 2 Mar 2010 22:34:11 +0000 (22:34 +0000)]
Test test_pep277 is only relevant for Unicode-friendly filesystems.
Benjamin Peterson [Tue, 2 Mar 2010 22:26:25 +0000 (22:26 +0000)]
convert deprecated fail* methods to assert* variants
Benjamin Peterson [Tue, 2 Mar 2010 22:24:30 +0000 (22:24 +0000)]
use test_main() in __main__ section
Benjamin Peterson [Tue, 2 Mar 2010 22:23:33 +0000 (22:23 +0000)]
prevent warning filter adjustment from altering other tests
Benjamin Peterson [Tue, 2 Mar 2010 22:20:10 +0000 (22:20 +0000)]
enable running of argparse tests and fix two that failed in the new environment
Georg Brandl [Tue, 2 Mar 2010 22:17:38 +0000 (22:17 +0000)]
Add some x-refs.
Benjamin Peterson [Tue, 2 Mar 2010 22:08:40 +0000 (22:08 +0000)]
remove another coding cookie
Benjamin Peterson [Tue, 2 Mar 2010 22:05:59 +0000 (22:05 +0000)]
set svn:eol-style
Benjamin Peterson [Tue, 2 Mar 2010 22:03:03 +0000 (22:03 +0000)]
remove coding cookie as mandated by PEP 8
Florent Xicluna [Tue, 2 Mar 2010 21:34:45 +0000 (21:34 +0000)]
Tentatively enable test_pep277 on all platforms.
Florent Xicluna [Tue, 2 Mar 2010 16:00:00 +0000 (16:00 +0000)]
Refactor test_dict using assertRaises.
Michael Foord [Tue, 2 Mar 2010 14:22:15 +0000 (14:22 +0000)]
Link correction in documentation.
Andrew M. Kuchling [Tue, 2 Mar 2010 13:55:33 +0000 (13:55 +0000)]
Add an item
Steven Bethard [Tue, 2 Mar 2010 08:38:09 +0000 (08:38 +0000)]
Initial commit of the argparse library, based on argparse 1.1.
Docs still need some updating to make getopt and optparse match the wording promised in the PEP.
There are also probably a number of :class:ArgumentParser etc. links that could be added to the argparse documentation.
Benjamin Peterson [Mon, 1 Mar 2010 23:25:13 +0000 (23:25 +0000)]
remove CVS id
Barry Warsaw [Mon, 1 Mar 2010 21:46:51 +0000 (21:46 +0000)]
Manually copy patch for bug 7250 from the release26-maint branch. I suck
because I did this in the wrong order and couldn't smack svnmerge into
submission.
Florent Xicluna [Mon, 1 Mar 2010 20:45:01 +0000 (20:45 +0000)]
#7808: Fix reference leaks in _bsddb and related tests.
Andrew M. Kuchling [Mon, 1 Mar 2010 20:11:57 +0000 (20:11 +0000)]
#7637: avoid repeated-concatenation antipattern in example
Andrew M. Kuchling [Mon, 1 Mar 2010 19:51:43 +0000 (19:51 +0000)]
#7191: describe more details of wbits parameter
Andrew M. Kuchling [Mon, 1 Mar 2010 19:45:21 +0000 (19:45 +0000)]
#7637: update discussion of minidom.unlink() and garbage collection
R. David Murray [Mon, 1 Mar 2010 19:14:16 +0000 (19:14 +0000)]
Issue 3892 again. The bsddb3 replication test still fails randomly.
Since this module is unmaintained in the library and gone in py3k,
this patch skips the remainder of the replication test if a
second timeout occurs, as it randomly does. This should improve buildbot
stability.
Gregory P. Smith [Mon, 1 Mar 2010 06:01:02 +0000 (06:01 +0000)]
Fix test to be skipped on windows.
Gregory P. Smith [Mon, 1 Mar 2010 05:43:43 +0000 (05:43 +0000)]
Fixes issue #7999: os.setreuid() and os.setregid() would refuse to accept
a -1 parameter on some platforms such as OS X.
Gregory P. Smith [Mon, 1 Mar 2010 04:56:12 +0000 (04:56 +0000)]
Adds c_ssize_t to ctypes. issue 6729.
Gregory P. Smith [Mon, 1 Mar 2010 03:09:19 +0000 (03:09 +0000)]
Cleanup the test added in r78517 based on Ezio Melotti's feedback.
Gregory P. Smith [Mon, 1 Mar 2010 02:53:24 +0000 (02:53 +0000)]
Fix the new test on windows (skip it, its posix only)
Gregory P. Smith [Mon, 1 Mar 2010 02:31:33 +0000 (02:31 +0000)]
Fix for r78527. It left out updating forkpty.
Gregory P. Smith [Mon, 1 Mar 2010 02:01:47 +0000 (02:01 +0000)]
Adds the hashlib.algorithms attribute. See issue7418.
Gregory P. Smith [Mon, 1 Mar 2010 01:22:39 +0000 (01:22 +0000)]
Issue #7242: On Solaris 9 and earlier calling os.fork() from within a
thread could raise an incorrect RuntimeError about not holding the import
lock. The import lock is now reinitialized after fork.
Gregory P. Smith [Mon, 1 Mar 2010 00:05:08 +0000 (00:05 +0000)]
Issue #
1068268 : The subprocess module now handles EINTR in internal
os.waitpid and os.read system calls where appropriate.
Ezio Melotti [Sun, 28 Feb 2010 23:59:00 +0000 (23:59 +0000)]
#8030: more docstring fix for builtin types.
Gregory P. Smith [Sun, 28 Feb 2010 18:36:09 +0000 (18:36 +0000)]
Issue #7481: When a threading.Thread failed to start it would leave the
instance stuck in initial state and present in threading.enumerate().
Georg Brandl [Sun, 28 Feb 2010 18:26:37 +0000 (18:26 +0000)]
The set types can also be called without arguments.
Georg Brandl [Sun, 28 Feb 2010 18:19:17 +0000 (18:19 +0000)]
#8030: make builtin type docstrings more consistent: use "iterable" instead of "seq(uence)", use "new" to show that set() always returns a new object.
Ezio Melotti [Sun, 28 Feb 2010 03:11:07 +0000 (03:11 +0000)]
Pep8ify test names in the examples.
Florent Xicluna [Sat, 27 Feb 2010 21:15:27 +0000 (21:15 +0000)]
Fix an oversight in r78508: p.wait() should be compared to 0
Florent Xicluna [Sat, 27 Feb 2010 19:20:50 +0000 (19:20 +0000)]
Clean test_subprocess: use assertRaises, skipIf, skipUnless helpers and a custom helper assertStderrEqual.
Florent Xicluna [Sat, 27 Feb 2010 15:10:19 +0000 (15:10 +0000)]
#7793: Fix RuntimeError when running "regrtest -R" for multibyte codecs.
Georg Brandl [Sat, 27 Feb 2010 14:58:08 +0000 (14:58 +0000)]
Link to http://www.python.org/dev/workflow/ from bugs page.
Ezio Melotti [Sat, 27 Feb 2010 13:50:35 +0000 (13:50 +0000)]
Fix missing parenthesis.
Florent Xicluna [Sat, 27 Feb 2010 13:31:23 +0000 (13:31 +0000)]
Issue #
1729305 : Fix doctest to handle encode error with "backslashreplace". It fixes #7667 too.
Ezio Melotti [Sat, 27 Feb 2010 12:42:52 +0000 (12:42 +0000)]
Add a test for normpath to test_macpath.
Florent Xicluna [Sat, 27 Feb 2010 11:19:18 +0000 (11:19 +0000)]
Add entry for issue #691291.
Benjamin Peterson [Sat, 27 Feb 2010 00:11:42 +0000 (00:11 +0000)]
run autoconf
Ezio Melotti [Sat, 27 Feb 2010 00:05:42 +0000 (00:05 +0000)]
Show an error when the value passed to --enable-unicode is not ucs2 or ucs4 (lowercase).
Ezio Melotti [Fri, 26 Feb 2010 23:27:06 +0000 (23:27 +0000)]
typo: __next__ -> next
Andrew M. Kuchling [Fri, 26 Feb 2010 13:22:50 +0000 (13:22 +0000)]
#7407: specify default maxsize value; patch by Floris Bruynooghe
Florent Xicluna [Fri, 26 Feb 2010 10:40:58 +0000 (10:40 +0000)]
#691291: codecs.open() should not convert end of lines on reading and writing.
Senthil Kumaran [Fri, 26 Feb 2010 00:47:05 +0000 (00:47 +0000)]
Fixing issue5475 : urllib2.getproxies not documented
Martin v. Löwis [Thu, 25 Feb 2010 20:42:40 +0000 (20:42 +0000)]
Add Florent Xicluna.
Ezio Melotti [Thu, 25 Feb 2010 17:36:04 +0000 (17:36 +0000)]
#7649: "u'%c' % char" now behaves like "u'%s' % char" and raises a UnicodeDecodeError if 'char' is a byte string that can't be decoded using the default encoding.
Eric Smith [Thu, 25 Feb 2010 14:26:33 +0000 (14:26 +0000)]
Issue #7928: Document str.format element_index better.
Eric Smith [Thu, 25 Feb 2010 14:14:35 +0000 (14:14 +0000)]
Issue #5965: Add documentation for parts of format specification language.
Senthil Kumaran [Wed, 24 Feb 2010 20:55:31 +0000 (20:55 +0000)]
Fix for Issue7540 ; urllib2 will raise a TypeError when you try to add_data to
a existing req object already having data.
Dirkjan Ochtman [Wed, 24 Feb 2010 17:06:31 +0000 (17:06 +0000)]
Add some notes about Tools/scripts/serve.py.
Ezio Melotti [Wed, 24 Feb 2010 16:49:56 +0000 (16:49 +0000)]
typos
Senthil Kumaran [Wed, 24 Feb 2010 16:45:46 +0000 (16:45 +0000)]
Fix for Issue3819 - urllib2 sends Basic auth across redirects
Eric Smith [Wed, 24 Feb 2010 14:15:36 +0000 (14:15 +0000)]
Issue #7309: Unchecked pointer access when converting UnicodeEncodeError, UnicodeDecodeError, and UnicodeTranslateError to strings.
Dirkjan Ochtman [Wed, 24 Feb 2010 04:49:00 +0000 (04:49 +0000)]
Issue #7427: improve the representation of httplib.BadStatusLine exceptions.
Dirkjan Ochtman [Wed, 24 Feb 2010 04:12:11 +0000 (04:12 +0000)]
Issue #8004: add a serve target to the Doc Makefile.
Dirkjan Ochtman [Wed, 24 Feb 2010 04:00:52 +0000 (04:00 +0000)]
Issue #7733: add explicit reference in asyncore docs.
R. David Murray [Wed, 24 Feb 2010 02:31:27 +0000 (02:31 +0000)]
Issue 7975: in python 2.6 bsddb.dbshelve switched from DictMixin to
MutableMapping, and thereby lost functionality because the replacement
functionality was implemented incorrectly or incompletely). Since bsddb
isn't in py3k, this patch just goes back to using DictMixin in order to
correct the regression.
Benjamin Peterson [Wed, 24 Feb 2010 02:24:35 +0000 (02:24 +0000)]
Merged revisions 78407 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r78407 | benjamin.peterson | 2010-02-23 20:21:34 -0600 (Tue, 23 Feb 2010) | 1 line
rewrite test to not rely on __doc__ being present
........
R. David Murray [Wed, 24 Feb 2010 02:08:28 +0000 (02:08 +0000)]
The primary copy of lib2to3 is not trunk, so the lib2to3 change
should not have been included in the -OO patch, back it out.
Brett Cannon [Wed, 24 Feb 2010 01:38:04 +0000 (01:38 +0000)]
Record that Dino Viehland got commit privs.
Amaury Forgeot d'Arc [Tue, 23 Feb 2010 23:19:39 +0000 (23:19 +0000)]
#4852: Remove dead code in every thread implementation, unused for many years.
Victor Stinner [Tue, 23 Feb 2010 23:16:07 +0000 (23:16 +0000)]
Issue #7649: Fix u'%c' % char for character in range 0x80..0xFF
=> raise an UnicodeDecodeError. Patch written by Ezio Melotti.
Georg Brandl [Tue, 23 Feb 2010 21:48:57 +0000 (21:48 +0000)]
#6544: fix refleak in kqueue, occurring in certain error conditions.
Georg Brandl [Tue, 23 Feb 2010 21:33:17 +0000 (21:33 +0000)]
#8000: fix deprecated directive. What a shame to lose that glorious issue number to such a minor bug :)
Dirkjan Ochtman [Tue, 23 Feb 2010 21:09:52 +0000 (21:09 +0000)]
Fix #
1537721 : add writeheader() method to csv.DictWriter.
Reviewed by skip.montanaro and thomas.wouters.
Thomas Heller [Tue, 23 Feb 2010 20:11:44 +0000 (20:11 +0000)]
ctypes CThunkObject was not registered correctly with the cycle
garbage collector, leading to possible leaks when using callback
functions.
Jack Diederich [Tue, 23 Feb 2010 19:34:06 +0000 (19:34 +0000)]
issue#6442 use in operator instead of has_key
Jack Diederich [Tue, 23 Feb 2010 17:23:30 +0000 (17:23 +0000)]
fixup markup error
Michael Foord [Tue, 23 Feb 2010 17:00:53 +0000 (17:00 +0000)]
unittest.TestResult can now be used with the TextTestRunner. TextTestRunner compatible with old TestResult objects.
Mark Dickinson [Tue, 23 Feb 2010 13:06:50 +0000 (13:06 +0000)]
Fix spacing nit. Thanks Eric Smith for the public humiliation.
Mark Dickinson [Tue, 23 Feb 2010 12:53:52 +0000 (12:53 +0000)]
Make global variable overflowok into a keyword argument; this fixes a failure when running ./python -m test.regrtest -R 3:2: test_format
Tarek Ziadé [Tue, 23 Feb 2010 05:53:05 +0000 (05:53 +0000)]
fixed #5801: removed spurious empty lines in wsgiref
Tarek Ziadé [Tue, 23 Feb 2010 05:36:41 +0000 (05:36 +0000)]
completed the __all__ list and changed the module doctest
Tarek Ziadé [Tue, 23 Feb 2010 05:20:22 +0000 (05:20 +0000)]
added a note on shutil new APIs
Tarek Ziadé [Tue, 23 Feb 2010 05:16:41 +0000 (05:16 +0000)]
added make_archive (and secondary APIs) to shutil
Tarek Ziadé [Tue, 23 Feb 2010 04:57:05 +0000 (04:57 +0000)]
removed debugging code
R. David Murray [Tue, 23 Feb 2010 00:24:49 +0000 (00:24 +0000)]
Issue 6292: for the moment at least, the test suite passes if run
with -OO. Tests requiring docstrings are skipped. Patch by
Brian Curtin, thanks to Matias Torchinsky for helping review and
improve the patch.
Eric Smith [Tue, 23 Feb 2010 00:11:16 +0000 (00:11 +0000)]
Issue #6902: Fix problem with built-in types format incorrectly with 0 padding.
Michael Foord [Mon, 22 Feb 2010 23:28:32 +0000 (23:28 +0000)]
Support for old TestResult object (unittest) with warnings when using unsupported features.
Andrew M. Kuchling [Mon, 22 Feb 2010 23:12:00 +0000 (23:12 +0000)]
#7706: add include guards where they're missing; required for Windows CE
Andrew M. Kuchling [Mon, 22 Feb 2010 23:10:52 +0000 (23:10 +0000)]
#7706: DONT_HAVE_ERRNO_H is no longer defined by configure (after rev.46819).
Andrew M. Kuchling [Mon, 22 Feb 2010 22:48:41 +0000 (22:48 +0000)]
#2560: remove an unnecessary 'for' loop from my_fgets() in Parser/myreadline.c.
Noted by Joseph Armbruster; patch by Jessica McKellar.
The original code was 'for (;;) {...}', where ... ended
with a 'return -2' statement and did not contain a 'break' or 'continue'
statement. Therefore, the body of the loop is always executed once.
Once upon a time there was a 'continue' in the loop, but it was removed in
rev36346, committed by mwh on Wed Jul 7 17:44:12 2004.
Jack Diederich [Mon, 22 Feb 2010 21:27:38 +0000 (21:27 +0000)]
* fix issue#7476
Andrew M. Kuchling [Mon, 22 Feb 2010 21:04:02 +0000 (21:04 +0000)]
Remove Tools/modulator, a reference to it in the docs, and a screenshot of it.
(I asked the BDFL first, and he approved removing it. The last actual bugfix
to Tools/modulator was in 2001; since then all changes have been search-and-replace:
string methods, whitespace fixes, etc.)
Jack Diederich [Mon, 22 Feb 2010 19:55:22 +0000 (19:55 +0000)]
fixes issue #
1522237 , bad init check in _threading_local
Andrew M. Kuchling [Mon, 22 Feb 2010 18:42:07 +0000 (18:42 +0000)]
#7627: MH.remove() would fail if the MH mailbox was locked;
it would call _unlock_file() and pass it a closed file object. Noted by Rob Austein.
Andrew M. Kuchling [Mon, 22 Feb 2010 18:38:23 +0000 (18:38 +0000)]
Fix comment typo
Eric Smith [Mon, 22 Feb 2010 18:33:47 +0000 (18:33 +0000)]
Issue #7988: Fix default alignment to be right aligned for complex.__format__. Now it matches other numeric types.
Jack Diederich [Mon, 22 Feb 2010 18:17:16 +0000 (18:17 +0000)]
fixes issue #7530, serve_forever()
Andrew M. Kuchling [Mon, 22 Feb 2010 17:21:54 +0000 (17:21 +0000)]
Note granting of commit privileges to Larry Hastings
Ezio Melotti [Mon, 22 Feb 2010 16:30:58 +0000 (16:30 +0000)]
#7482: clarify error message in case of division by zero of float and complex numbers.