]> granicus.if.org Git - python/log
python
14 years agoImproved Windows test coverage.
Vinay Sajip [Mon, 9 May 2011 16:32:09 +0000 (17:32 +0100)]
Improved Windows test coverage.

14 years agoMerge with 3.2.
Ezio Melotti [Mon, 9 May 2011 15:42:32 +0000 (18:42 +0300)]
Merge with 3.2.

14 years agoMerge with 3.1.
Ezio Melotti [Mon, 9 May 2011 15:40:42 +0000 (18:40 +0300)]
Merge with 3.1.

14 years agoSome more tests were incorrectly marked as C specific.
Ezio Melotti [Mon, 9 May 2011 15:36:53 +0000 (18:36 +0300)]
Some more tests were incorrectly marked as C specific.

14 years agoIssue #3709: a flush_headers method to BaseHTTPRequestHandler which manages the
Senthil Kumaran [Mon, 9 May 2011 15:25:02 +0000 (23:25 +0800)]
Issue #3709: a flush_headers method to BaseHTTPRequestHandler which manages the
sending of headers to output stream and flushing the internal headers buffer.
Patch contribution by Andrew Schaaf

14 years agoIssue #11743: Rewrite multiprocessing connection classes in pure Python.
Antoine Pitrou [Mon, 9 May 2011 15:04:27 +0000 (17:04 +0200)]
Issue #11743: Rewrite multiprocessing connection classes in pure Python.

14 years agoIssue #11188: In log2 tests, create powers of 2 using ldexp(1, n) instead of the...
Mark Dickinson [Mon, 9 May 2011 13:02:45 +0000 (14:02 +0100)]
Issue #11188: In log2 tests, create powers of 2 using ldexp(1, n) instead of the less reliable 2.0**n.

14 years agoIssue #8407: Use an explicit cast for FreeBSD
Victor Stinner [Mon, 9 May 2011 12:45:38 +0000 (14:45 +0200)]
Issue #8407: Use an explicit cast for FreeBSD

pthread_t is a pointer, not an integer, on FreeBSD. It should fix the following
gcc warning:

passing argument 1 of ‘pthread_kill’ makes pointer from integer without a cast

14 years agofaulthandler: make quiet a gcc 4.6 warning (z was unused)
Victor Stinner [Mon, 9 May 2011 12:44:26 +0000 (14:44 +0200)]
faulthandler: make quiet a gcc 4.6 warning (z was unused)

14 years agoIssue #10811: Use TestCase.assertRaises() in the new test
Victor Stinner [Mon, 9 May 2011 10:50:41 +0000 (12:50 +0200)]
Issue #10811: Use TestCase.assertRaises() in the new test

14 years agoIssue #11888: Use system log2() when available
Victor Stinner [Mon, 9 May 2011 10:45:41 +0000 (12:45 +0200)]
Issue #11888: Use system log2() when available

I expect the system libc to use more accurate functions than Python. The GNU
libc uses for example FYL2X and FYL2XP1 hardware instructions on Intel FPU.

14 years ago#10811: Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError...
Gerhard Haering [Mon, 9 May 2011 10:24:09 +0000 (12:24 +0200)]
#10811: Fix recursive usage of cursors. Instead of crashing, raise a ProgrammingError now.

14 years agoGrammatical fix for a comment for log2, to avoid referring to an *algorithm* as monot...
Mark Dickinson [Mon, 9 May 2011 07:40:20 +0000 (08:40 +0100)]
Grammatical fix for a comment for log2, to avoid referring to an *algorithm* as monotonic.

14 years agoFix nonunique test ids in math_testcases.txt.
Mark Dickinson [Mon, 9 May 2011 07:18:57 +0000 (08:18 +0100)]
Fix nonunique test ids in math_testcases.txt.

14 years agoFix cut-and-paste typo in comment: log10 -> log2.
Mark Dickinson [Mon, 9 May 2011 07:05:00 +0000 (08:05 +0100)]
Fix cut-and-paste typo in comment: log10 -> log2.

14 years agomerge 11164
Martin v. Löwis [Mon, 9 May 2011 06:12:19 +0000 (08:12 +0200)]
merge 11164

14 years agomerge 11164
Martin v. Löwis [Mon, 9 May 2011 06:10:38 +0000 (08:10 +0200)]
merge 11164

14 years agoStop trying to use _xmlplus in the xml module. Closes #11164.
Martin v. Löwis [Mon, 9 May 2011 06:05:43 +0000 (08:05 +0200)]
Stop trying to use _xmlplus in the xml module. Closes #11164.
Patch by Arfrever Frehtes Taifersar Arahesis.

14 years agomerged
Martin v. Löwis [Mon, 9 May 2011 05:42:48 +0000 (07:42 +0200)]
merged

14 years agoThe option is actually --no-as-needed.
Martin v. Löwis [Mon, 9 May 2011 05:42:28 +0000 (07:42 +0200)]
The option is actually --no-as-needed.

14 years agomerge 11347.
Martin v. Löwis [Mon, 9 May 2011 05:41:32 +0000 (07:41 +0200)]
merge 11347.

14 years agoUse --as-needed when linking libpython3.so. Closes #11347.
Martin v. Löwis [Mon, 9 May 2011 05:37:45 +0000 (07:37 +0200)]
Use --as-needed when linking libpython3.so. Closes #11347.
Patch by Arfrever Frehtes Taifersar Arahesis.

14 years ago#11910: merge with 3.2.
Ezio Melotti [Mon, 9 May 2011 04:30:21 +0000 (07:30 +0300)]
#11910: merge with 3.2.

14 years ago#11910: merge with 3.1.
Ezio Melotti [Mon, 9 May 2011 04:27:20 +0000 (07:27 +0300)]
#11910: merge with 3.1.

14 years agoSome tests were incorrectly marked as C specific.
Ezio Melotti [Mon, 9 May 2011 04:20:47 +0000 (07:20 +0300)]
Some tests were incorrectly marked as C specific.

14 years ago#11910: Fix test_heapq to skip the C tests when _heapq is missing.
Ezio Melotti [Mon, 9 May 2011 04:15:04 +0000 (07:15 +0300)]
#11910: Fix test_heapq to skip the C tests when _heapq is missing.

14 years ago#11910: merge with 3.2.
Ezio Melotti [Mon, 9 May 2011 03:44:36 +0000 (06:44 +0300)]
#11910: merge with 3.2.

14 years ago#11910: merge with 3.1.
Ezio Melotti [Mon, 9 May 2011 03:43:14 +0000 (06:43 +0300)]
#11910: merge with 3.1.

14 years ago#11910: change import_fresh_module to return None when one of the "fresh" modules...
Ezio Melotti [Mon, 9 May 2011 03:41:55 +0000 (06:41 +0300)]
#11910: change import_fresh_module to return None when one of the "fresh" modules can not be imported.

14 years agoMerge with 3.2.
Ezio Melotti [Mon, 9 May 2011 01:00:47 +0000 (04:00 +0300)]
Merge with 3.2.

14 years agoMerge with 3.1.
Ezio Melotti [Mon, 9 May 2011 01:00:06 +0000 (04:00 +0300)]
Merge with 3.1.

14 years agoAdd a note to the str.find doc to suggest the use of the "in" operator.
Ezio Melotti [Mon, 9 May 2011 00:54:30 +0000 (03:54 +0300)]
Add a note to the str.find doc to suggest the use of the "in" operator.

14 years agonote the point of having log2
Benjamin Peterson [Mon, 9 May 2011 00:48:08 +0000 (19:48 -0500)]
note the point of having log2

14 years agoClose #12032: Fix scripts/crlf.py for Python 3
Victor Stinner [Sun, 8 May 2011 23:29:30 +0000 (01:29 +0200)]
Close #12032: Fix scripts/crlf.py for Python 3

14 years agoIssue #11888: Add log2 function to math module. Patch written by Mark
Victor Stinner [Sun, 8 May 2011 23:01:09 +0000 (01:01 +0200)]
Issue #11888: Add log2 function to math module. Patch written by Mark
Dickinson.

14 years agoIssue #12012: ssl.PROTOCOL_SSLv2 becomes optional
Victor Stinner [Sun, 8 May 2011 22:42:58 +0000 (00:42 +0200)]
Issue #12012: ssl.PROTOCOL_SSLv2 becomes optional

OpenSSL is now compiled with OPENSSL_NO_SSL2 defined (without the SSLv2
protocol) on Debian: fix the ssl module on Debian Testing and Debian Sid.

Optimize also ssl.get_protocol_name(): speed does matter!

14 years agomerge 3.2
Benjamin Peterson [Sun, 8 May 2011 20:35:09 +0000 (15:35 -0500)]
merge 3.2

14 years agomerge 3.1
Benjamin Peterson [Sun, 8 May 2011 20:34:24 +0000 (15:34 -0500)]
merge 3.1

14 years agoput import_fresh_module in __all__
Benjamin Peterson [Sun, 8 May 2011 20:32:46 +0000 (15:32 -0500)]
put import_fresh_module in __all__

14 years agoRefactor buggy test to correctly use the msg argument of assertRaises.
Ezio Melotti [Sun, 8 May 2011 17:23:57 +0000 (20:23 +0300)]
Refactor buggy test to correctly use the msg argument of assertRaises.

14 years agoMerge with 3.2.
Ezio Melotti [Sun, 8 May 2011 17:01:36 +0000 (20:01 +0300)]
Merge with 3.2.

14 years agoMerge with 3.1.
Ezio Melotti [Sun, 8 May 2011 17:00:03 +0000 (20:00 +0300)]
Merge with 3.1.

14 years agoAdd back Misc/NEWS entry that got lost during merge, and fix a couple of other things.
Ezio Melotti [Sun, 8 May 2011 16:58:08 +0000 (19:58 +0300)]
Add back Misc/NEWS entry that got lost during merge, and fix a couple of other things.

14 years agoIssue #8407: Remove debug code from test_signal
Victor Stinner [Sun, 8 May 2011 00:10:36 +0000 (02:10 +0200)]
Issue #8407: Remove debug code from test_signal

I don't think that we still need it.

14 years agoIssue #8407: The signal handler writes the signal number as a single byte
Victor Stinner [Sun, 8 May 2011 00:03:15 +0000 (02:03 +0200)]
Issue #8407: The signal handler writes the signal number as a single byte
instead of a nul byte into the wakeup file descriptor. So it is possible to
wait more than one signal and know which signals were raised.

14 years agoIssue #8407: Add pthread_kill(), sigpending() and sigwait() functions to the
Victor Stinner [Sat, 7 May 2011 23:46:11 +0000 (01:46 +0200)]
Issue #8407: Add pthread_kill(), sigpending() and sigwait() functions to the
signal module.

14 years agoMerge
Antoine Pitrou [Sat, 7 May 2011 17:48:40 +0000 (19:48 +0200)]
Merge

14 years agoMerge
Antoine Pitrou [Sat, 7 May 2011 17:48:18 +0000 (19:48 +0200)]
Merge

14 years agoMerge
Antoine Pitrou [Sat, 7 May 2011 17:47:47 +0000 (19:47 +0200)]
Merge

14 years agoMerge
Antoine Pitrou [Sat, 7 May 2011 17:47:24 +0000 (19:47 +0200)]
Merge

14 years agoMerge
Antoine Pitrou [Sat, 7 May 2011 17:45:34 +0000 (19:45 +0200)]
Merge

14 years agoMerge: Issue #11927: SMTP_SSL now uses port 465 by default as documented.
Antoine Pitrou [Sat, 7 May 2011 17:42:39 +0000 (19:42 +0200)]
Merge: Issue #11927: SMTP_SSL now uses port 465 by default as documented.

14 years agoMerge: Issue #11927: SMTP_SSL now uses port 465 by default as documented.
Antoine Pitrou [Sat, 7 May 2011 17:41:33 +0000 (19:41 +0200)]
Merge: Issue #11927: SMTP_SSL now uses port 465 by default as documented.

14 years agoIssue #11927: SMTP_SSL now uses port 465 by default as documented. Patch by Kasun...
Antoine Pitrou [Sat, 7 May 2011 17:39:37 +0000 (19:39 +0200)]
Issue #11927: SMTP_SSL now uses port 465 by default as documented.  Patch by Kasun Herath.

14 years agomerge
Giampaolo Rodola' [Sat, 7 May 2011 17:35:36 +0000 (19:35 +0200)]
merge

14 years agomerge with 3.2
Giampaolo Rodola' [Sat, 7 May 2011 17:11:06 +0000 (19:11 +0200)]
merge with 3.2

14 years agomerge with 3.1
Giampaolo Rodola' [Sat, 7 May 2011 17:09:34 +0000 (19:09 +0200)]
merge with 3.1

14 years ago#12002 - ftplib's abort() method raises TypeError
Giampaolo Rodola' [Sat, 7 May 2011 17:03:47 +0000 (19:03 +0200)]
#12002 - ftplib's abort() method raises TypeError

14 years ago#5421: merge with 3.2.
Ezio Melotti [Sat, 7 May 2011 16:51:47 +0000 (19:51 +0300)]
#5421: merge with 3.2.

14 years ago#5421: merge with 3.1.
Ezio Melotti [Sat, 7 May 2011 16:50:28 +0000 (19:50 +0300)]
#5421: merge with 3.1.

14 years ago#5421: add tests.
Ezio Melotti [Sat, 7 May 2011 16:47:48 +0000 (19:47 +0300)]
#5421: add tests.

14 years agoreverting 9688977ef567 committed by accident
Giampaolo Rodola' [Sat, 7 May 2011 16:47:31 +0000 (18:47 +0200)]
reverting 9688977ef567 committed by accident

14 years agoClosed resource leak in SysLogHandler.
Vinay Sajip [Sat, 7 May 2011 16:01:22 +0000 (17:01 +0100)]
Closed resource leak in SysLogHandler.

14 years ago#12017: merge with 3.2.
Ezio Melotti [Sat, 7 May 2011 15:29:14 +0000 (18:29 +0300)]
#12017: merge with 3.2.

14 years ago#12017: merge with 3.1.
Ezio Melotti [Sat, 7 May 2011 15:15:34 +0000 (18:15 +0300)]
#12017: merge with 3.1.

14 years agotest_ftplib.py: change client default timeout from 10 to 2. Hanging for 10 seconds...
Giampaolo Rodola' [Sat, 7 May 2011 15:08:34 +0000 (17:08 +0200)]
test_ftplib.py: change client default timeout from 10 to 2. Hanging for 10 seconds is way too much when we expect a server response which never comes in.

14 years agomerge heads
Giampaolo Rodola' [Sat, 7 May 2011 15:08:04 +0000 (17:08 +0200)]
merge heads

14 years agotest_ftplib.py: change client default timeout from 10 to 2. Hanging for 10 seconds...
Giampaolo Rodola' [Sat, 7 May 2011 15:02:21 +0000 (17:02 +0200)]
test_ftplib.py: change client default timeout from 10 to 2. Hanging for 10 seconds is way too much when we expect a server response which never comes in.

14 years ago#12017: Fix segfault in json.loads() while decoding highly-nested objects using the...
Ezio Melotti [Sat, 7 May 2011 14:58:09 +0000 (17:58 +0300)]
#12017: Fix segfault in json.loads() while decoding highly-nested objects using the C accelerations.

14 years agoChanged where socket close is called on connection failure.
Vinay Sajip [Sat, 7 May 2011 14:55:47 +0000 (15:55 +0100)]
Changed where socket close is called on connection failure.

14 years ago#11072- applying http://bugs.python.org/review/11072/show suggestions
Giampaolo Rodola' [Sat, 7 May 2011 14:06:59 +0000 (16:06 +0200)]
#11072- applying http://bugs.python.org/review/11072/show suggestions

14 years agoMerge.
Vinay Sajip [Sat, 7 May 2011 12:44:50 +0000 (13:44 +0100)]
Merge.

14 years agoClose socket on connection failure.
Vinay Sajip [Sat, 7 May 2011 12:44:11 +0000 (13:44 +0100)]
Close socket on connection failure.

14 years agoMerge: Fix potential resource leak in test_mmap.
Nadeem Vawda [Sat, 7 May 2011 12:36:14 +0000 (14:36 +0200)]
Merge: Fix potential resource leak in test_mmap.

14 years agoMerge: Fix potential resource leak in test_mmap.
Nadeem Vawda [Sat, 7 May 2011 12:35:36 +0000 (14:35 +0200)]
Merge: Fix potential resource leak in test_mmap.

14 years agoFix potential resource leak in test_mmap.
Nadeem Vawda [Sat, 7 May 2011 12:35:05 +0000 (14:35 +0200)]
Fix potential resource leak in test_mmap.

14 years agoMerge: #11277: Fix tests - crash will not trigger if the file is closed and reopened.
Nadeem Vawda [Sat, 7 May 2011 12:17:27 +0000 (14:17 +0200)]
Merge: #11277: Fix tests - crash will not trigger if the file is closed and reopened.

14 years agoMerge: #11277: Fix tests - crash will not trigger if the file is closed and reopened.
Nadeem Vawda [Sat, 7 May 2011 12:16:50 +0000 (14:16 +0200)]
Merge: #11277: Fix tests - crash will not trigger if the file is closed and reopened.

14 years agoIssue #11277: Fix tests - crash will not trigger if the file is closed and reopened.
Nadeem Vawda [Sat, 7 May 2011 12:14:53 +0000 (14:14 +0200)]
Issue #11277: Fix tests - crash will not trigger if the file is closed and reopened.

14 years agoMerge: #11277: Add tests for mmap crash when using large sparse files on OS X.
Nadeem Vawda [Sat, 7 May 2011 11:11:59 +0000 (13:11 +0200)]
Merge: #11277: Add tests for mmap crash when using large sparse files on OS X.

Also, reduce code duplication in LargeMmapTests.

Original patch by Steffen Daode Nurpmeso.

14 years agoMerge: #11277: Add tests for mmap crash when using large sparse files on OS X.
Nadeem Vawda [Sat, 7 May 2011 11:08:54 +0000 (13:08 +0200)]
Merge: #11277: Add tests for mmap crash when using large sparse files on OS X.

Also, reduce code duplication in LargeMmapTests.

Original patch by Steffen Daode Nurpmeso.

14 years agoIssue #11277: Add tests for mmap crash when using large sparse files on OS X.
Nadeem Vawda [Sat, 7 May 2011 11:01:50 +0000 (13:01 +0200)]
Issue #11277: Add tests for mmap crash when using large sparse files on OS X.

Also, reduce code duplication in LargeMmapTests.

Original patch by Steffen Daode Nurpmeso.

14 years ago_PyImport_LoadDynamicModule() encodes the module name explicitly to ASCII
Victor Stinner [Sat, 7 May 2011 10:46:05 +0000 (12:46 +0200)]
_PyImport_LoadDynamicModule() encodes the module name explicitly to ASCII

The name must be encodable to ASCII because dynamic module must have a function
called "PyInit_NAME", they are written in C, and the C language doesn't accept
non-ASCII identifiers.

14 years agofaulthandler: dump all threads by default
Victor Stinner [Sat, 7 May 2011 10:43:00 +0000 (12:43 +0200)]
faulthandler: dump all threads by default

 * Set the default value of all_threads arguments to True
 * Py_FatalError() dumps all threads, instead of only the current thread

Dump only the current thread is not reliable. In some cases, Python is unable
to retrieve the state of the current thread and so is unable to dump the
traceback. faulthandler keeps a reference to the interpreter and so is always
able to dump the traceback of all threads.

14 years agofaulthandler: save/restore errno in the two signal handlers
Victor Stinner [Sat, 7 May 2011 10:20:11 +0000 (12:20 +0200)]
faulthandler: save/restore errno in the two signal handlers

14 years agoCloses Issue 11916: Add a number of MacOSX specific definitions to the errno module.
Ronald Oussoren [Sat, 7 May 2011 07:59:03 +0000 (09:59 +0200)]
Closes Issue 11916: Add a number of MacOSX specific definitions to the errno module.

Patch by Pierre Carrier.

14 years ago#11999: sync based on comparing mtimes, not mtime to system clock
R David Murray [Sat, 7 May 2011 02:26:27 +0000 (22:26 -0400)]
#11999: sync based on comparing mtimes, not mtime to system clock

14 years ago#11999: sync based on comparing mtimes, not mtime to system clock
R David Murray [Sat, 7 May 2011 02:20:34 +0000 (22:20 -0400)]
#11999: sync based on comparing mtimes, not mtime to system clock

14 years ago#11999: sync based on comparing mtimes, not mtime to system clock
R David Murray [Sat, 7 May 2011 02:07:19 +0000 (22:07 -0400)]
#11999: sync based on comparing mtimes, not mtime to system clock

14 years agoRefined rollover test for slow test machines.
Vinay Sajip [Fri, 6 May 2011 18:06:00 +0000 (19:06 +0100)]
Refined rollover test for slow test machines.

14 years agoIssue #11072: added MLSD command (RFC-3659) support to ftplib.
Giampaolo Rodola' [Fri, 6 May 2011 17:49:08 +0000 (19:49 +0200)]
Issue #11072: added MLSD command (RFC-3659) support to ftplib.

14 years agoIssue #8808: The IMAP4_SSL constructor now allows passing an SSLContext
Antoine Pitrou [Fri, 6 May 2011 16:49:52 +0000 (18:49 +0200)]
Issue #8808: The IMAP4_SSL constructor now allows passing an SSLContext
parameter to control parameters of the secure channel.  Patch by Sijin
Joseph.

14 years agomerge from 3.2
Ronald Oussoren [Fri, 6 May 2011 15:11:44 +0000 (17:11 +0200)]
merge from 3.2

14 years agontpath.samefile fails to detect that "A.TXT" and "a.txt" refer to the same file on...
Ronald Oussoren [Fri, 6 May 2011 15:11:07 +0000 (17:11 +0200)]
ntpath.samefile fails to detect that "A.TXT" and "a.txt" refer to the same file on Windows XP.

Noticed while researching a buildbot failure due to a patch for issue #10684.

14 years agoIssue #12000: When a SSL certificate has a subjectAltName without any
Antoine Pitrou [Fri, 6 May 2011 13:20:55 +0000 (15:20 +0200)]
Issue #12000: When a SSL certificate has a subjectAltName without any
dNSName entry, ssl.match_hostname() should use the subject's commonName.
Patch by Nicolas Bareil.

14 years agoIssue #12000: When a SSL certificate has a subjectAltName without any
Antoine Pitrou [Fri, 6 May 2011 13:19:49 +0000 (15:19 +0200)]
Issue #12000: When a SSL certificate has a subjectAltName without any
dNSName entry, ssl.match_hostname() should use the subject's commonName.
Patch by Nicolas Bareil.

14 years agoIssue #10775: assertRaises, assertRaisesRegex, assertWarns, and assertWarnsRegex...
Ezio Melotti [Fri, 6 May 2011 12:01:41 +0000 (15:01 +0300)]
Issue #10775: assertRaises, assertRaisesRegex, assertWarns, and assertWarnsRegex now accept a keyword argument 'msg' when used as context managers.  Initial patch by Winston Ewert.

14 years agomerge from 3.2
Ronald Oussoren [Fri, 6 May 2011 09:17:40 +0000 (11:17 +0200)]
merge from 3.2

14 years agomerge from 3.1
Ronald Oussoren [Fri, 6 May 2011 08:57:22 +0000 (10:57 +0200)]
merge from 3.1

14 years agoFix for issue 10684: Folders get deleted when trying to change case with shutil.move...
Ronald Oussoren [Fri, 6 May 2011 08:23:04 +0000 (10:23 +0200)]
Fix for issue 10684: Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)