]> granicus.if.org Git - python/log
python
15 years agoIssue #7143: get_payload used to strip any trailing newline from a
R. David Murray [Mon, 8 Mar 2010 02:04:06 +0000 (02:04 +0000)]
Issue #7143: get_payload used to strip any trailing newline from a
base64 transfer-encoded payload *after* decoding it; it no longer does.
email had a special method in utils, _bdecode, specifically to do this,
so it must have served a purpose at some point, yet it is clearly wrong
per RFC.  Fixed with Barry's approval, but no backport.  Email package
minor version number is bumped, now version 4.0.1.

Patch by Joaquin Cuenca Abela.

15 years agoBackport the Popen.poll() protection from subprocess to multiprocessing. See #1731717.
Florent Xicluna [Sun, 7 Mar 2010 23:49:03 +0000 (23:49 +0000)]
Backport the Popen.poll() protection from subprocess to multiprocessing. See #1731717.
It should fix transient failures on test_multiprocessing.

15 years agoRemove accidental print statement from last commit.
Michael Foord [Sun, 7 Mar 2010 23:16:20 +0000 (23:16 +0000)]
Remove accidental print statement from last commit.

15 years agoFix accidental name rebinding in unittest py3k warning filtering.
Michael Foord [Sun, 7 Mar 2010 23:10:36 +0000 (23:10 +0000)]
Fix accidental name rebinding in unittest py3k warning filtering.

15 years agoAddition of setUpClass and setUpModule shared fixtures to unittest.
Michael Foord [Sun, 7 Mar 2010 22:04:55 +0000 (22:04 +0000)]
Addition of setUpClass and setUpModule shared fixtures to unittest.

15 years ago#8044: document Py_{Enter,Leave}RecursiveCall functions.
Georg Brandl [Sun, 7 Mar 2010 21:32:06 +0000 (21:32 +0000)]
#8044: document Py_{Enter,Leave}RecursiveCall functions.

15 years ago#8039: document conditional expressions better, giving them their own section.
Georg Brandl [Sun, 7 Mar 2010 21:12:28 +0000 (21:12 +0000)]
#8039: document conditional expressions better, giving them their own section.

15 years ago#8085: The function is called PyObject_NewVar, not PyObject_VarNew.
Georg Brandl [Sun, 7 Mar 2010 20:58:31 +0000 (20:58 +0000)]
#8085: The function is called PyObject_NewVar, not PyObject_VarNew.

15 years agoFix for potentials errors in constructing unittest failure messages. Plus skipped...
Michael Foord [Sun, 7 Mar 2010 20:22:12 +0000 (20:22 +0000)]
Fix for potentials errors in constructing unittest failure messages. Plus skipped test methods no longer run setUp and tearDown (Issue 8059)

15 years agoRefresh the documentation for the test.test_support module.
Florent Xicluna [Sun, 7 Mar 2010 19:14:12 +0000 (19:14 +0000)]
Refresh the documentation for the test.test_support module.

15 years ago#2777: Try hard to make Win7 buildbot happy...
Florent Xicluna [Sun, 7 Mar 2010 17:12:23 +0000 (17:12 +0000)]
#2777: Try hard to make Win7 buildbot happy...

15 years agoSilence compiler warning.
Mark Dickinson [Sun, 7 Mar 2010 17:10:19 +0000 (17:10 +0000)]
Silence compiler warning.

15 years agoIssue #1530559: When packing a non-integer with any integer conversion
Mark Dickinson [Sun, 7 Mar 2010 16:24:45 +0000 (16:24 +0000)]
Issue #1530559: When packing a non-integer with any integer conversion
code using struct.pack, attempt to convert to an integer first using
the argument's __int__ method (if present).  Also raise a
DeprecationWarning for any such usage of __int__.

This fixes a regression from 2.6, where some (but not all) integer
conversion codes already used __int__.

15 years agoDo not fail if returncode is 0 on send_signal/kill/terminate, for win32 platforms.
Florent Xicluna [Sun, 7 Mar 2010 15:27:39 +0000 (15:27 +0000)]
Do not fail if returncode is 0 on send_signal/kill/terminate, for win32 platforms.
Do not hide the KeyboardInterrupt on POSIX platforms.

15 years ago#5341: more built-in vs builtin fixes.
Georg Brandl [Sun, 7 Mar 2010 15:23:59 +0000 (15:23 +0000)]
#5341: more built-in vs builtin fixes.

15 years ago#2777: Enable test_send_signal, test_terminate and test_kill on win32 platforms.
Florent Xicluna [Sun, 7 Mar 2010 12:21:36 +0000 (12:21 +0000)]
#2777: Enable test_send_signal, test_terminate and test_kill on win32 platforms.

15 years agoIssue #7849: Now the utility ``check_warnings`` verifies if the warnings are
Florent Xicluna [Sun, 7 Mar 2010 12:18:33 +0000 (12:18 +0000)]
Issue #7849: Now the utility ``check_warnings`` verifies if the warnings are
effectively raised.  A new utility ``check_py3k_warnings`` deals with py3k warnings.

15 years agoFix some py3k warnings in the standard library.
Florent Xicluna [Sun, 7 Mar 2010 12:14:25 +0000 (12:14 +0000)]
Fix some py3k warnings in the standard library.

15 years agoFix for issue #7998: pythonw didn't work when --with-framework-name was
Ronald Oussoren [Sun, 7 Mar 2010 09:04:06 +0000 (09:04 +0000)]
Fix for issue #7998: pythonw didn't work when --with-framework-name was
specified

15 years agoReverting the change made in r78431.
Senthil Kumaran [Sun, 7 Mar 2010 04:09:30 +0000 (04:09 +0000)]
Reverting the change made in r78431.

15 years agoeliminate py3k warnings in argparse
Benjamin Peterson [Sun, 7 Mar 2010 00:29:44 +0000 (00:29 +0000)]
eliminate py3k warnings in argparse

15 years agomore specific exception for wrong kind of raise #8082
Benjamin Peterson [Sun, 7 Mar 2010 00:00:37 +0000 (00:00 +0000)]
more specific exception for wrong kind of raise #8082

15 years agopost release update
Benjamin Peterson [Sat, 6 Mar 2010 22:44:07 +0000 (22:44 +0000)]
post release update

15 years agotag 2.7 alpha 4
Benjamin Peterson [Sat, 6 Mar 2010 20:37:03 +0000 (20:37 +0000)]
tag 2.7 alpha 4

15 years agobump version to 2.7a4 v2.7a4
Benjamin Peterson [Sat, 6 Mar 2010 20:34:14 +0000 (20:34 +0000)]
bump version to 2.7a4

15 years agoSkip test_send_signal, test_kill, test_terminate on win32 platforms, for 2.7a4 release.
Florent Xicluna [Sat, 6 Mar 2010 19:43:41 +0000 (19:43 +0000)]
Skip test_send_signal, test_kill, test_terminate on win32 platforms, for 2.7a4 release.

15 years agoMinor tweaking of previous r78734, and add a NEWS entry.
Florent Xicluna [Sat, 6 Mar 2010 18:52:52 +0000 (18:52 +0000)]
Minor tweaking of previous r78734, and add a NEWS entry.

15 years agoCreate test_genericpath.CommonTest and reuse it to test other path modules.
Florent Xicluna [Sat, 6 Mar 2010 18:07:18 +0000 (18:07 +0000)]
Create test_genericpath.CommonTest and reuse it to test other path modules.

15 years agoDo not print the header lines when running a single test.
Florent Xicluna [Sat, 6 Mar 2010 17:24:36 +0000 (17:24 +0000)]
Do not print the header lines when running a single test.

15 years agoAdded checks for tuples in dictConfig.
Vinay Sajip [Sat, 6 Mar 2010 15:56:03 +0000 (15:56 +0000)]
Added checks for tuples in dictConfig.

15 years agoAdded schema version test in dictConfig.
Vinay Sajip [Sat, 6 Mar 2010 15:12:08 +0000 (15:12 +0000)]
Added schema version test in dictConfig.

15 years agoBackport "test.regrtest -R 2:3" syntax from py3k branch, and other minor adjustments.
Florent Xicluna [Sat, 6 Mar 2010 14:38:09 +0000 (14:38 +0000)]
Backport "test.regrtest -R 2:3" syntax from py3k branch, and other minor adjustments.

15 years ago#6906: TCL_LIBRARY and TK_LIBRARY environment variables should be encoded.
Florent Xicluna [Sat, 6 Mar 2010 11:01:08 +0000 (11:01 +0000)]
#6906: TCL_LIBRARY and TK_LIBRARY environment variables should be encoded.

15 years ago#2777: Apply same recipe on win32, i.e. do not inherit file handles.
Florent Xicluna [Sat, 6 Mar 2010 09:54:14 +0000 (09:54 +0000)]
#2777: Apply same recipe on win32, i.e. do not inherit file handles.

15 years agoPrint platform information to stdout, to help troubleshooting platform-specific failures.
Florent Xicluna [Sat, 6 Mar 2010 09:11:55 +0000 (09:11 +0000)]
Print platform information to stdout, to help troubleshooting platform-specific failures.

15 years agoKeep the test files in the ./build/ subdirectory, if Python is not installed.
Florent Xicluna [Sat, 6 Mar 2010 08:07:44 +0000 (08:07 +0000)]
Keep the test files in the ./build/ subdirectory, if Python is not installed.
Remove two hacks which are no longer needed after #7712, because all __file__ attributes are absolute.

15 years agoCall setreuid and setregid in a subprocess to avoid altering the test runner's
Gregory P. Smith [Sat, 6 Mar 2010 07:35:19 +0000 (07:35 +0000)]
Call setreuid and setregid in a subprocess to avoid altering the test runner's
process state.  Should fix issue8045.

15 years agosettscdump is definitely an implementation detail
Benjamin Peterson [Sat, 6 Mar 2010 03:13:33 +0000 (03:13 +0000)]
settscdump is definitely an implementation detail

15 years agosearch in the alternative location for VCExpress
Tarek Ziadé [Sat, 6 Mar 2010 02:17:28 +0000 (02:17 +0000)]
search in the alternative location for VCExpress

15 years agofixed various failures and environment alterations in distutils.test_build_ext
Tarek Ziadé [Sat, 6 Mar 2010 02:11:14 +0000 (02:11 +0000)]
fixed various failures and environment alterations in distutils.test_build_ext

15 years agofiles used by win32 tests
Tarek Ziadé [Sat, 6 Mar 2010 01:27:09 +0000 (01:27 +0000)]
files used by win32 tests

15 years agosimplified the fallback case
Tarek Ziadé [Sat, 6 Mar 2010 01:23:21 +0000 (01:23 +0000)]
simplified the fallback case

15 years agoprovide a fallback for xxmodule.c in case the buildir is not present
Tarek Ziadé [Sat, 6 Mar 2010 01:18:27 +0000 (01:18 +0000)]
provide a fallback for xxmodule.c in case the buildir is not present

15 years agocopied back the build_ext tests from 2.6
Tarek Ziadé [Sat, 6 Mar 2010 01:04:14 +0000 (01:04 +0000)]
copied back the build_ext tests from 2.6

15 years ago#2777: Apply same recipe for test_terminate and test_kill, i.e. close or redirect...
Florent Xicluna [Sat, 6 Mar 2010 00:16:57 +0000 (00:16 +0000)]
#2777: Apply same recipe for test_terminate and test_kill, i.e. close or redirect fds.

15 years agoFactored out time usage determination into a method, to facilitate alternative format...
Vinay Sajip [Fri, 5 Mar 2010 22:11:24 +0000 (22:11 +0000)]
Factored out time usage determination into a method, to facilitate alternative formatting implementations in the future.

15 years ago#2777: Handle fds more carefully to try to fix some x86-Linux failures (namely, neal...
Florent Xicluna [Fri, 5 Mar 2010 19:31:21 +0000 (19:31 +0000)]
#2777: Handle fds more carefully to try to fix some x86-Linux failures (namely, neal bot and twisted bot).

15 years agoRemove the redundant #define: PY_STRUCT_FLOAT_COERCE
Mark Dickinson [Fri, 5 Mar 2010 14:50:22 +0000 (14:50 +0000)]
Remove the redundant #define: PY_STRUCT_FLOAT_COERCE

15 years agoFix incorrect stacklevel for DeprecationWarnings originating from the struct module.
Mark Dickinson [Fri, 5 Mar 2010 14:36:20 +0000 (14:36 +0000)]
Fix incorrect stacklevel for DeprecationWarnings originating from the struct module.
Also clean up related tests in test_struct.
The stacklevel fix should be backported to 2.6 once that branch is unfrozen.

15 years agoMerged code from pysqlite 2.6.0.
Gerhard Häring [Fri, 5 Mar 2010 09:12:37 +0000 (09:12 +0000)]
Merged code from pysqlite 2.6.0.

15 years agoMerged revisions 78679,78681 via svnmerge from
Benjamin Peterson [Fri, 5 Mar 2010 03:24:17 +0000 (03:24 +0000)]
Merged revisions 78679,78681 via svnmerge from
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3

........
  r78679 | benjamin.peterson | 2010-03-04 21:10:46 -0600 (Thu, 04 Mar 2010) | 1 line

  set svn:eol-style
........
  r78681 | benjamin.peterson | 2010-03-04 21:19:06 -0600 (Thu, 04 Mar 2010) | 1 line

  remove svn:executable property
........

15 years agoremove the svn:executable property from files that don't have shebang lines
Benjamin Peterson [Fri, 5 Mar 2010 03:20:06 +0000 (03:20 +0000)]
remove the svn:executable property from files that don't have shebang lines

15 years agoset svn:eol-style on Lib files
Benjamin Peterson [Fri, 5 Mar 2010 03:15:07 +0000 (03:15 +0000)]
set svn:eol-style on Lib files

15 years agoset svn:eol-style
Benjamin Peterson [Fri, 5 Mar 2010 03:07:59 +0000 (03:07 +0000)]
set svn:eol-style

15 years agoThese line should not be there.
Florent Xicluna [Fri, 5 Mar 2010 01:12:14 +0000 (01:12 +0000)]
These line should not be there.

15 years agoLet's use assertIsNone / assertIsNotNone. It's hype.
Florent Xicluna [Fri, 5 Mar 2010 01:05:55 +0000 (01:05 +0000)]
Let's use assertIsNone / assertIsNotNone. It's hype.

15 years agoWorkaround #3137: Retry SIGINT if it is not received the first time.
Florent Xicluna [Fri, 5 Mar 2010 00:47:40 +0000 (00:47 +0000)]
Workaround #3137: Retry SIGINT if it is not received the first time.
test_send_signal should not hang anymore on various Linux distributions.

15 years agoreverted the usage of compiler_obj in Python's setup.py
Tarek Ziadé [Fri, 5 Mar 2010 00:29:38 +0000 (00:29 +0000)]
reverted the usage of compiler_obj in Python's setup.py

15 years agoreverting partially distutils to its 2.6.x state so 2.7a4 looks more like the 2.7b1...
Tarek Ziadé [Fri, 5 Mar 2010 00:16:02 +0000 (00:16 +0000)]
reverting partially distutils to its 2.6.x state so 2.7a4 looks more like the 2.7b1 in this. the whole revert will occur after a4 is tagged

15 years ago#2777: Enable test_send_signal, test_kill and test_terminate on all platforms.
Florent Xicluna [Thu, 4 Mar 2010 21:31:58 +0000 (21:31 +0000)]
#2777: Enable test_send_signal, test_kill and test_terminate on all platforms.

15 years agoCleanup.
Florent Xicluna [Thu, 4 Mar 2010 19:40:48 +0000 (19:40 +0000)]
Cleanup.

15 years agoTry to fix buildbot breakage from r78384.
Dirkjan Ochtman [Thu, 4 Mar 2010 19:21:53 +0000 (19:21 +0000)]
Try to fix buildbot breakage from r78384.

Thanks bitdancer and briancurtin for the help.

15 years agoFix documentation of email.Message.get_filename to match
R. David Murray [Thu, 4 Mar 2010 17:34:05 +0000 (17:34 +0000)]
Fix documentation of email.Message.get_filename to match
the fix applied in Issue 7082.

15 years ago#7805: wait until all workers are started before collecting their PIDs
Florent Xicluna [Thu, 4 Mar 2010 15:58:54 +0000 (15:58 +0000)]
#7805: wait until all workers are started before collecting their PIDs

15 years agoFix transient refleak in test_popen2.
Florent Xicluna [Thu, 4 Mar 2010 15:57:20 +0000 (15:57 +0000)]
Fix transient refleak in test_popen2.

15 years agoIssue #1054943: Fix unicodedata.normalize('NFC', text) for the Public Review
Victor Stinner [Thu, 4 Mar 2010 12:09:33 +0000 (12:09 +0000)]
Issue #1054943: Fix unicodedata.normalize('NFC', text) for the Public Review
Issue #29.

PR #29 was released in february 2004!

15 years agoset svn:executable on all regen scripts
Benjamin Peterson [Thu, 4 Mar 2010 02:07:55 +0000 (02:07 +0000)]
set svn:executable on all regen scripts

15 years agoIssue #7494: fix a crash in _lsprof (cProfile) after clearing the profiler,
Victor Stinner [Thu, 4 Mar 2010 00:10:12 +0000 (00:10 +0000)]
Issue #7494: fix a crash in _lsprof (cProfile) after clearing the profiler,
reset also the pointer to the current pointer context.

15 years agoIssue #7544: Preallocate thread memory before creating the thread to avoid a
Victor Stinner [Wed, 3 Mar 2010 23:20:25 +0000 (23:20 +0000)]
Issue #7544: Preallocate thread memory before creating the thread to avoid a
fatal error in low memory condition.

15 years agoIssue #3299: fix curses.panel.new_panel() error handler, replace PyObject_DEL()
Victor Stinner [Wed, 3 Mar 2010 21:53:41 +0000 (21:53 +0000)]
Issue #3299: fix curses.panel.new_panel() error handler, replace PyObject_DEL()
by Py_DECREF() to avoid a crash in pydebug mode.

Use po->wo==NULL to detect than the panel is in the lop list or not.

15 years agorephrase
Benjamin Peterson [Wed, 3 Mar 2010 21:28:25 +0000 (21:28 +0000)]
rephrase

15 years agoIssue #7232: Add support for the context manager protocol
Lars Gustäbel [Wed, 3 Mar 2010 11:55:48 +0000 (11:55 +0000)]
Issue #7232: Add support for the context manager protocol
to the TarFile class.

15 years agoRevert a nonexistent docstring typo, r42805.
Florent Xicluna [Wed, 3 Mar 2010 11:49:53 +0000 (11:49 +0000)]
Revert a nonexistent docstring typo, r42805.

15 years agofix Sphinx warnings
Benjamin Peterson [Wed, 3 Mar 2010 02:04:24 +0000 (02:04 +0000)]
fix Sphinx warnings

15 years agoedit for style
Benjamin Peterson [Wed, 3 Mar 2010 01:55:09 +0000 (01:55 +0000)]
edit for style

15 years agoIssue #3299: fix thread.allocate_lock() error handler, replace PyObject_Del()
Victor Stinner [Wed, 3 Mar 2010 00:43:44 +0000 (00:43 +0000)]
Issue #3299: fix thread.allocate_lock() error handler, replace PyObject_Del()
by Py_DECREF() to fix a crash in pydebug mode.

15 years agoFix wording.
Florent Xicluna [Tue, 2 Mar 2010 23:56:38 +0000 (23:56 +0000)]
Fix wording.

15 years agoplug ref leaks
Benjamin Peterson [Tue, 2 Mar 2010 23:43:47 +0000 (23:43 +0000)]
plug ref leaks

15 years agoIssue #7820: The parser tokenizer restores all bytes in the right if the BOM
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.

15 years agoremove cross-version compatibility code
Benjamin Peterson [Tue, 2 Mar 2010 23:02:02 +0000 (23:02 +0000)]
remove cross-version compatibility code

15 years agoremove code to avoid BaseException.message bug
Benjamin Peterson [Tue, 2 Mar 2010 22:58:01 +0000 (22:58 +0000)]
remove code to avoid BaseException.message bug

15 years agoIssue #2973: Fix gcc warning on the 2nd argument of ASN1_item_d2i() and
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.

15 years agoTest test_pep277 is only relevant for Unicode-friendly filesystems.
Florent Xicluna [Tue, 2 Mar 2010 22:34:11 +0000 (22:34 +0000)]
Test test_pep277 is only relevant for Unicode-friendly filesystems.

15 years agoconvert deprecated fail* methods to assert* variants
Benjamin Peterson [Tue, 2 Mar 2010 22:26:25 +0000 (22:26 +0000)]
convert deprecated fail* methods to assert* variants

15 years agouse test_main() in __main__ section
Benjamin Peterson [Tue, 2 Mar 2010 22:24:30 +0000 (22:24 +0000)]
use test_main() in __main__ section

15 years agoprevent warning filter adjustment from altering other tests
Benjamin Peterson [Tue, 2 Mar 2010 22:23:33 +0000 (22:23 +0000)]
prevent warning filter adjustment from altering other tests

15 years agoenable running of argparse tests and fix two that failed in the new environment
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

15 years agoAdd some x-refs.
Georg Brandl [Tue, 2 Mar 2010 22:17:38 +0000 (22:17 +0000)]
Add some x-refs.

15 years agoremove another coding cookie
Benjamin Peterson [Tue, 2 Mar 2010 22:08:40 +0000 (22:08 +0000)]
remove another coding cookie

15 years agoset svn:eol-style
Benjamin Peterson [Tue, 2 Mar 2010 22:05:59 +0000 (22:05 +0000)]
set svn:eol-style

15 years agoremove coding cookie as mandated by PEP 8
Benjamin Peterson [Tue, 2 Mar 2010 22:03:03 +0000 (22:03 +0000)]
remove coding cookie as mandated by PEP 8

15 years agoTentatively enable test_pep277 on all platforms.
Florent Xicluna [Tue, 2 Mar 2010 21:34:45 +0000 (21:34 +0000)]
Tentatively enable test_pep277 on all platforms.

15 years agoRefactor test_dict using assertRaises.
Florent Xicluna [Tue, 2 Mar 2010 16:00:00 +0000 (16:00 +0000)]
Refactor test_dict using assertRaises.

15 years agoLink correction in documentation.
Michael Foord [Tue, 2 Mar 2010 14:22:15 +0000 (14:22 +0000)]
Link correction in documentation.

15 years agoAdd an item
Andrew M. Kuchling [Tue, 2 Mar 2010 13:55:33 +0000 (13:55 +0000)]
Add an item

15 years agoInitial commit of the argparse library, based on argparse 1.1.
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.

15 years agoremove CVS id
Benjamin Peterson [Mon, 1 Mar 2010 23:25:13 +0000 (23:25 +0000)]
remove CVS id

15 years agoManually copy patch for bug 7250 from the release26-maint branch. I suck
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.

15 years ago#7808: Fix reference leaks in _bsddb and related tests.
Florent Xicluna [Mon, 1 Mar 2010 20:45:01 +0000 (20:45 +0000)]
#7808: Fix reference leaks in _bsddb and related tests.

15 years ago#7637: avoid repeated-concatenation antipattern in example
Andrew M. Kuchling [Mon, 1 Mar 2010 20:11:57 +0000 (20:11 +0000)]
#7637: avoid repeated-concatenation antipattern in example