]> granicus.if.org Git - python/log
python
14 years agoIssue #8567: Fix incorrect precedence of signals in Decimal module.
Mark Dickinson [Tue, 4 May 2010 14:25:50 +0000 (14:25 +0000)]
Issue #8567: Fix incorrect precedence of signals in Decimal module.

When a Decimal operation raises multiple signals and more than one of
those signals is trapped, the specification determines the order in
which the signals should be handled.  In many cases this order wasn't
being followed, leading to the wrong Python exception being raised.
This commit fixes those cases, and adds extra tests.  The tests are
only enabled when EXTENDEDERRORTESTS is True, since they involve
rerunning each Decimal testcase several times.

14 years ago_pyio: Fix TextIOWrapper constructor: os has no device_encoding() function
Victor Stinner [Tue, 4 May 2010 11:35:36 +0000 (11:35 +0000)]
_pyio: Fix TextIOWrapper constructor: os has no device_encoding() function

_io module doesn't call this function which was introduced in Python3.

14 years agoIssue #8404: Fix set operations on dictionary views.
Alexandre Vassalotti [Tue, 4 May 2010 03:21:51 +0000 (03:21 +0000)]
Issue #8404: Fix set operations on dictionary views.

14 years agoAdd some more items; the urlparse change is added twice
Andrew M. Kuchling [Tue, 4 May 2010 01:24:22 +0000 (01:24 +0000)]
Add some more items; the urlparse change is added twice

14 years agoPull a NULL pointer check up to cover more cases in the function.
Brett Cannon [Tue, 4 May 2010 01:23:36 +0000 (01:23 +0000)]
Pull a NULL pointer check up to cover more cases in the function.

Found using Clang's static analyzer.

14 years agoRemove an unneeded variable and assignment.
Brett Cannon [Tue, 4 May 2010 01:16:51 +0000 (01:16 +0000)]
Remove an unneeded variable and assignment.

Found using Clang's static analyzer.

14 years agoMention the code clean-up thanks to Clang's static analyzer in Modules.
Brett Cannon [Tue, 4 May 2010 01:04:53 +0000 (01:04 +0000)]
Mention the code clean-up thanks to Clang's static analyzer in Modules.

Was not applied to modules that will not compile under OS X, dbmmodule.c,
getaddrinfo.c, and getnameinfo.c.

14 years agoFix some whitespace.
Brett Cannon [Tue, 4 May 2010 01:01:00 +0000 (01:01 +0000)]
Fix some whitespace.

14 years agoRemove an unneeded variable assignment.
Brett Cannon [Tue, 4 May 2010 00:57:44 +0000 (00:57 +0000)]
Remove an unneeded variable assignment.

Found using Clang's static analyzer.

14 years agoStrip out extraneous whitespace, cast a some `const char *` to `void *` when
Brett Cannon [Tue, 4 May 2010 00:52:41 +0000 (00:52 +0000)]
Strip out extraneous whitespace, cast a some `const char *` to `void *` when
passed to free() and make a `char *` to a `const char *` as found by Clang's
static analyzer.

14 years agoFix a Py_DECREF to a Py_XDECREF.
Brett Cannon [Tue, 4 May 2010 00:48:11 +0000 (00:48 +0000)]
Fix a Py_DECREF to a Py_XDECREF.

Found using Clang's static analyzer.

14 years agoPrevent a possible NULL de-reference and an unneeded variable assignment.
Brett Cannon [Tue, 4 May 2010 00:36:00 +0000 (00:36 +0000)]
Prevent a possible NULL de-reference and an unneeded variable assignment.

Found using Clang's static analyzer.

14 years agoRemove a redundant string length check and variable assignment.
Brett Cannon [Tue, 4 May 2010 00:30:17 +0000 (00:30 +0000)]
Remove a redundant string length check and variable assignment.

Found with Clang's static analyzer.

14 years agoFix two potential uninitialization errors and an unneeded assignment.
Brett Cannon [Mon, 3 May 2010 23:57:15 +0000 (23:57 +0000)]
Fix two potential uninitialization errors and an unneeded assignment.

Found using Clang's static analyzer.

14 years agoRemove unused variables and a variable initialization.
Brett Cannon [Mon, 3 May 2010 23:51:28 +0000 (23:51 +0000)]
Remove unused variables and a variable initialization.

Found using Clang's static analyzer.

14 years agoRemove unneeded variable assignment.
Brett Cannon [Mon, 3 May 2010 23:44:54 +0000 (23:44 +0000)]
Remove unneeded variable assignment.

Found using Clang's static analyzer.

14 years agoRemove unneeded variable mutation and initializations.
Brett Cannon [Mon, 3 May 2010 23:43:49 +0000 (23:43 +0000)]
Remove unneeded variable mutation and initializations.

Found using Clang's static analyzer.

14 years agoClean up whitespace and remove unneeded variable initialization as found by
Brett Cannon [Mon, 3 May 2010 23:42:40 +0000 (23:42 +0000)]
Clean up whitespace and remove unneeded variable initialization as found by
Clang.

14 years agoRemove an unused variable.
Brett Cannon [Mon, 3 May 2010 23:41:51 +0000 (23:41 +0000)]
Remove an unused variable.

Found using Clang's static analyzer.

14 years agoRemove unneeded variable initialization.
Brett Cannon [Mon, 3 May 2010 23:41:23 +0000 (23:41 +0000)]
Remove unneeded variable initialization.

Found using Clang's static analyzer.

14 years agoIssue #7865: The close() method of :mod:`io` objects should not swallow
Antoine Pitrou [Mon, 3 May 2010 16:25:33 +0000 (16:25 +0000)]
Issue #7865: The close() method of :mod:`io` objects should not swallow
exceptions raised by the implicit flush().  Also ensure that calling
close() several times is supported.  Patch by Pascal Chambon.

14 years agowbits negative was documented SEVEN years ago
Jesus Cea [Mon, 3 May 2010 16:09:21 +0000 (16:09 +0000)]
wbits negative was documented SEVEN years ago

14 years agoIssue #8576: logging updated to remove usage of find_unused_port().
Vinay Sajip [Mon, 3 May 2010 15:11:53 +0000 (15:11 +0000)]
Issue #8576: logging updated to remove usage of find_unused_port().

14 years agoUpdate the Vim syntax highlight file.
Brett Cannon [Sun, 2 May 2010 21:51:23 +0000 (21:51 +0000)]
Update the Vim syntax highlight file.

14 years agoFix unittest tests to not abuse traceback.format_exception
Michael Foord [Sun, 2 May 2010 20:39:42 +0000 (20:39 +0000)]
Fix unittest tests to not abuse traceback.format_exception

14 years agoIssue #4687: Fix accuracy of garbage collection runtimes displayed with
Antoine Pitrou [Sun, 2 May 2010 19:51:14 +0000 (19:51 +0000)]
Issue #4687: Fix accuracy of garbage collection runtimes displayed with
gc.DEBUG_STATS.

14 years agoSmall update to r80698 to ensure that webbrowser.open
Ronald Oussoren [Sun, 2 May 2010 09:55:57 +0000 (09:55 +0000)]
Small update to r80698 to ensure that webbrowser.open
uses the default browser.

14 years agoFor for issue #7192: with this patch webbrowser.get("firefox")
Ronald Oussoren [Sun, 2 May 2010 09:48:21 +0000 (09:48 +0000)]
For for issue #7192: with this patch webbrowser.get("firefox")
works on OSX

14 years agoImprove error message from nb_int returning a non-integer, in various PyInt_As* funct...
Mark Dickinson [Sun, 2 May 2010 09:38:43 +0000 (09:38 +0000)]
Improve error message from nb_int returning a non-integer, in various PyInt_As* functions:

14 years agoRemove duplicate test
Antoine Pitrou [Sat, 1 May 2010 20:26:58 +0000 (20:26 +0000)]
Remove duplicate test

14 years agoFix attribution. Travis didn't do much and he did a bad work.
Antoine Pitrou [Sat, 1 May 2010 12:16:39 +0000 (12:16 +0000)]
Fix attribution. Travis didn't do much and he did a bad work.
(yes, this is a sensitive subject, sorry)

14 years agoDescribe memoryview
Andrew M. Kuchling [Sat, 1 May 2010 12:06:51 +0000 (12:06 +0000)]
Describe memoryview

14 years agoMinor grammar fix
Andrew M. Kuchling [Sat, 1 May 2010 12:05:52 +0000 (12:05 +0000)]
Minor grammar fix

14 years agoFix incorrect use of a list as the target of an 'except' clause in test_decimal.py.
Mark Dickinson [Sat, 1 May 2010 11:46:20 +0000 (11:46 +0000)]
Fix incorrect use of a list as the target of an 'except' clause in test_decimal.py.

14 years agoFix issue8582: urllib.urlretrieve fails with ValueError: Invalid format string
Senthil Kumaran [Sat, 1 May 2010 08:01:56 +0000 (08:01 +0000)]
Fix issue8582: urllib.urlretrieve fails with ValueError: Invalid format string

14 years agoAdd various items
Andrew M. Kuchling [Sat, 1 May 2010 01:19:16 +0000 (01:19 +0000)]
Add various items

14 years agoIssue #8576: Remove use of find_unused_port() in test_smtplib and
Antoine Pitrou [Fri, 30 Apr 2010 23:08:48 +0000 (23:08 +0000)]
Issue #8576: Remove use of find_unused_port() in test_smtplib and
test_multiprocessing.  Patch by Paul Moore.

14 years ago[issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS
Marc-André Lemburg [Fri, 30 Apr 2010 17:20:14 +0000 (17:20 +0000)]
[issue8211] configure: ignore AC_PROG_CC hardcoded CFLAGS

Only override the AC_PROG_CC determined CFLAGS if they were set by the user.
This restores the default behavior in the common case of not having CFLAGS
defined when running configure.

14 years agoAdd notes about uninstalling a framework install to
Ronald Oussoren [Fri, 30 Apr 2010 15:11:22 +0000 (15:11 +0000)]
Add notes about uninstalling a framework install to
Mac/README. Fixes issue 7107.

14 years agoFix for issue 8476
Ronald Oussoren [Fri, 30 Apr 2010 14:58:39 +0000 (14:58 +0000)]
Fix for issue 8476

14 years agoAdd item
Andrew M. Kuchling [Fri, 30 Apr 2010 13:47:34 +0000 (13:47 +0000)]
Add item

14 years agoMinor grammar re-wording
Andrew M. Kuchling [Fri, 30 Apr 2010 13:46:55 +0000 (13:46 +0000)]
Minor grammar re-wording

14 years agoFixed #8577. distutils.sysconfig.get_python_inc() now differenciates buildir and...
Tarek Ziadé [Fri, 30 Apr 2010 12:15:12 +0000 (12:15 +0000)]
Fixed #8577. distutils.sysconfig.get_python_inc() now differenciates buildir and srcdir

14 years agoFix for issue #3646: with this patch it is possible to do a
Ronald Oussoren [Fri, 30 Apr 2010 11:20:14 +0000 (11:20 +0000)]
Fix for issue #3646: with this patch it is possible to do a
framework install of Python in your home directory (on OSX):

   $ configure --enable-framework=${HOME}/Library/Frameworks
   $ make && make install

Without this patch the framework would get installed just fine,
but 'make install' would try to install the application bundles
and command-line tools outside the user's home, which doesn't work
for non-admin users (and is bad form anyway).

14 years agoAdd various items; rearrange unittest section a bit
Andrew M. Kuchling [Fri, 30 Apr 2010 01:33:40 +0000 (01:33 +0000)]
Add various items; rearrange unittest section a bit

14 years agoMarkup fix; clarify by adding 'in that order'
Andrew M. Kuchling [Fri, 30 Apr 2010 01:32:47 +0000 (01:32 +0000)]
Markup fix; clarify by adding 'in that order'

14 years agoFix typos
Andrew M. Kuchling [Fri, 30 Apr 2010 01:02:15 +0000 (01:02 +0000)]
Fix typos

14 years agoReword paragraph to make its meaning clearer.
Andrew M. Kuchling [Fri, 30 Apr 2010 00:52:31 +0000 (00:52 +0000)]
Reword paragraph to make its meaning clearer.

Antoine Pitrou: is my version of the paragraph still correct?

R. David Murray: is this more understandable than the previous version?

14 years agoAlways add space after RFC; reword paragraph
Andrew M. Kuchling [Fri, 30 Apr 2010 00:49:09 +0000 (00:49 +0000)]
Always add space after RFC; reword paragraph

14 years agoFixes issue 8543 (asynchat documentation issues)
Giampaolo Rodolà [Thu, 29 Apr 2010 20:31:17 +0000 (20:31 +0000)]
Fixes issue 8543 (asynchat documentation issues)

14 years agoFixing the Broken links of mechanize library.
Senthil Kumaran [Thu, 29 Apr 2010 19:46:08 +0000 (19:46 +0000)]
Fixing the Broken links of mechanize library.

14 years agoGroup the Windows entries in getfilesystemencoding doc, move the win 9x one at the...
Ezio Melotti [Thu, 29 Apr 2010 16:07:20 +0000 (16:07 +0000)]
Group the Windows entries in getfilesystemencoding doc, move the win 9x one at the bottom of the list and fix some markup.

14 years agoIssue #8464: tarfile.open(name, mode="w|") no longer creates
Lars Gustäbel [Thu, 29 Apr 2010 15:23:38 +0000 (15:23 +0000)]
Issue #8464: tarfile.open(name, mode="w|") no longer creates
files with execute permissions set.

14 years agoIssue #7834: Fix connect() of Bluetooth L2CAP sockets with recent versions
Antoine Pitrou [Thu, 29 Apr 2010 10:05:40 +0000 (10:05 +0000)]
Issue #7834: Fix connect() of Bluetooth L2CAP sockets with recent versions
of the Linux kernel.  Patch by Yaniv Aknin.

14 years agoupdate pypy url
Benjamin Peterson [Thu, 29 Apr 2010 03:30:59 +0000 (03:30 +0000)]
update pypy url

14 years agoupdate pypy description
Benjamin Peterson [Thu, 29 Apr 2010 03:18:05 +0000 (03:18 +0000)]
update pypy description

14 years agoAdd various unittest items
Andrew M. Kuchling [Thu, 29 Apr 2010 01:45:41 +0000 (01:45 +0000)]
Add various unittest items

14 years agoFix doubled 'the'.
Andrew M. Kuchling [Thu, 29 Apr 2010 01:44:30 +0000 (01:44 +0000)]
Fix doubled 'the'.
Markup fixes to use :exc:, :option: in a few places.
  (Glitch: unittest.main's -c ends up a link to the Python
  interpreter's -c option.  Should we skip using :option: for that
  switch, or disable the auto-linking somehow?)

14 years agoAdd various items
Andrew M. Kuchling [Thu, 29 Apr 2010 00:22:16 +0000 (00:22 +0000)]
Add various items

14 years agoFix style issues in test_ssl
Antoine Pitrou [Wed, 28 Apr 2010 21:11:01 +0000 (21:11 +0000)]
Fix style issues in test_ssl

14 years agoClarify and fix the documentation for IOBase.close()
Antoine Pitrou [Wed, 28 Apr 2010 19:57:33 +0000 (19:57 +0000)]
Clarify and fix the documentation for IOBase.close()

14 years agoState clearly that truncate() doesn't move the file position,
Antoine Pitrou [Wed, 28 Apr 2010 19:53:35 +0000 (19:53 +0000)]
State clearly that truncate() doesn't move the file position,
and remove a duplicate of its specification.

14 years agoFixed Issue6312 - httplib fails with HEAD requests to pages with "transfer-encoding...
Senthil Kumaran [Wed, 28 Apr 2010 17:20:43 +0000 (17:20 +0000)]
Fixed Issue6312 - httplib fails with HEAD requests to pages with "transfer-encoding: chunked"

14 years agoAdd version changed note for -m tinkering with sys.argv[0] during the search process
Nick Coghlan [Wed, 28 Apr 2010 14:53:59 +0000 (14:53 +0000)]
Add version changed note for -m tinkering with sys.argv[0] during the search process

14 years agoIssue 8202: when using the -m command line switch, sys.argv[0] is now '-m' instead...
Nick Coghlan [Wed, 28 Apr 2010 14:51:08 +0000 (14:51 +0000)]
Issue 8202: when using the -m command line switch, sys.argv[0] is now '-m' instead of '-c' while searching for the module to be executed

14 years agoAlso mention patch submitter's name in NEWS, not just in the commit message
Nick Coghlan [Wed, 28 Apr 2010 14:34:30 +0000 (14:34 +0000)]
Also mention patch submitter's name in NEWS, not just in the commit message

14 years agoIssue 7490: make IGNORE_EXCEPTION_DETAIL also ignore details of the module containing...
Nick Coghlan [Wed, 28 Apr 2010 14:29:06 +0000 (14:29 +0000)]
Issue 7490: make IGNORE_EXCEPTION_DETAIL also ignore details of the module containing the exception under test (original patch by Lennart Regebro)

14 years agoIssue #3928: Support 'os.mknod()' in Solaris
Jesus Cea [Wed, 28 Apr 2010 10:32:30 +0000 (10:32 +0000)]
Issue #3928: Support 'os.mknod()' in Solaris

14 years agoIssue #7449, last part (11): fix many tests if thread support is disabled
Victor Stinner [Tue, 27 Apr 2010 23:55:59 +0000 (23:55 +0000)]
Issue #7449, last part (11): fix many tests if thread support is disabled

 * Use try/except ImportError or test_support.import_module() to import thread
   and threading modules
 * Add @unittest.skipUnless(threading, ...) to testcases using threads

14 years agoIssue #7449, part 10: test_cmd imports trace module using test_support.import_module()
Victor Stinner [Tue, 27 Apr 2010 23:51:16 +0000 (23:51 +0000)]
Issue #7449, part 10: test_cmd imports trace module using test_support.import_module()

Use test_support.import_module() instead of import to raise a SkipTest
exception if the import fail. Import trace fails if the threading module is
missing.

See also part 3: test_doctest: import trace module in test_coverage().

14 years agoPartial revert of r80556 (Issue #7449, part 5, fix ctypes test)
Victor Stinner [Tue, 27 Apr 2010 23:33:58 +0000 (23:33 +0000)]
Partial revert of r80556 (Issue #7449, part 5, fix ctypes test)

Rewrite r80556: the thread test have to be executed just after the test on
libc_open() and so the test cannot be splitted in two functions (without
duplicating code, and I don't want to duplicate code).

14 years agoIssue #7449, part 9: fix test_xmlrpclib for missing threading module
Victor Stinner [Tue, 27 Apr 2010 23:14:58 +0000 (23:14 +0000)]
Issue #7449, part 9: fix test_xmlrpclib for missing threading module

 * Skip testcases using threads if threading module is missing
 * Use "http://" instead of URL in ServerProxyTestCase if threading is missing
   because URL is not set in this case

14 years agoIssue #7449, part 8: don't skip the whole test_asynchat if threading is missing
Victor Stinner [Tue, 27 Apr 2010 23:03:16 +0000 (23:03 +0000)]
Issue #7449, part 8: don't skip the whole test_asynchat if threading is missing

TestFifo can be executed without the threading module

14 years agoIssue #7449, part 7: simplify threading detection in test_capi
Victor Stinner [Tue, 27 Apr 2010 23:01:29 +0000 (23:01 +0000)]
Issue #7449, part 7: simplify threading detection in test_capi

 * Skip TestPendingCalls if threading module is missing
 * Test if threading module is present or not, instead of test the presence of
   _testcapi._test_thread_state

14 years agoIssue #7449, part 6: fix test_hashlib for missing threading module
Victor Stinner [Tue, 27 Apr 2010 22:59:35 +0000 (22:59 +0000)]
Issue #7449, part 6: fix test_hashlib for missing threading module

Move @test_support.reap_thread decorator from test_main() to test_threaded_hashing().

14 years agomake slice notation in (r)find docs consistent
Benjamin Peterson [Tue, 27 Apr 2010 22:56:31 +0000 (22:56 +0000)]
make slice notation in (r)find docs consistent

14 years agoIssue #8086: In :func:`ssl.DER_cert_to_PEM_cert()`, fix missing newline
Antoine Pitrou [Tue, 27 Apr 2010 22:03:37 +0000 (22:03 +0000)]
Issue #8086: In :func:`ssl.DER_cert_to_PEM_cert()`, fix missing newline
before the certificate footer.  Patch by Kyle VanderBeek.

14 years agoIssue #7449, part 5: split Test.test_open() of ctypes/test/test_errno.py
Victor Stinner [Tue, 27 Apr 2010 22:01:24 +0000 (22:01 +0000)]
Issue #7449, part 5: split Test.test_open() of ctypes/test/test_errno.py

 * Split Test.test_open() in 2 functions: test_open() and test_thread_open()
 * Skip test_open() and test_thread_open() if we are unable to find the C
   library
 * Skip test_thread_open() if thread support is disabled
 * Use unittest.skipUnless(os.name == "nt", ...) on test_GetLastError()

14 years agoIssue #7449, part 4: skip test_multiprocessing if thread support is disabled
Victor Stinner [Tue, 27 Apr 2010 21:56:26 +0000 (21:56 +0000)]
Issue #7449, part 4: skip test_multiprocessing if thread support is disabled

import threading after _multiprocessing to raise a more revelant error message:
"No module named _multiprocessing". _multiprocessing is not compiled without
thread support.

14 years agoIssue #7449 part 3, test_doctest: import trace module in test_coverage()
Victor Stinner [Tue, 27 Apr 2010 21:51:26 +0000 (21:51 +0000)]
Issue #7449 part 3, test_doctest: import trace module in test_coverage()

Import trace module fail if the threading module is missing. test_coverage() is
only used if test_doctest.py is used with the -c option. This commit allows to
execute the test suite without thread support.

Move "import trace" in test_coverage() and use
test_support.import_module('trace').

14 years agoIssue #7449, part 2: regrtest.py -j option requires thread support
Victor Stinner [Tue, 27 Apr 2010 21:47:01 +0000 (21:47 +0000)]
Issue #7449, part 2: regrtest.py -j option requires thread support

14 years agoIssue #7449, part 1: fix test_support.py for Python compiled without thread
Victor Stinner [Tue, 27 Apr 2010 21:46:03 +0000 (21:46 +0000)]
Issue #7449, part 1: fix test_support.py for Python compiled without thread

14 years agocorrect signature
Benjamin Peterson [Tue, 27 Apr 2010 21:19:06 +0000 (21:19 +0000)]
correct signature

14 years agocondense import
Benjamin Peterson [Tue, 27 Apr 2010 21:18:30 +0000 (21:18 +0000)]
condense import

14 years agofold __future__ imports
Benjamin Peterson [Tue, 27 Apr 2010 21:17:22 +0000 (21:17 +0000)]
fold __future__ imports

14 years agofix comment
Benjamin Peterson [Tue, 27 Apr 2010 21:15:28 +0000 (21:15 +0000)]
fix comment

14 years agoreject None as the buffering argument like the C implementation does #8546
Benjamin Peterson [Tue, 27 Apr 2010 21:01:54 +0000 (21:01 +0000)]
reject None as the buffering argument like the C implementation does #8546

14 years agoIssue #8549: Fix compiling the _ssl extension under AIX. Patch by
Antoine Pitrou [Tue, 27 Apr 2010 19:09:59 +0000 (19:09 +0000)]
Issue #8549: Fix compiling the _ssl extension under AIX.  Patch by
Sridhar Ratnakumar.

14 years agosocket.error can really happen here, and fix a possible NameError
Antoine Pitrou [Tue, 27 Apr 2010 13:13:26 +0000 (13:13 +0000)]
socket.error can really happen here, and fix a possible NameError

14 years agoQualify or remove or bare excepts. Simplify exception handling in places.
Antoine Pitrou [Tue, 27 Apr 2010 10:32:58 +0000 (10:32 +0000)]
Qualify or remove or bare excepts.  Simplify exception handling in places.
Remove uses of test_support.TestFailed.

14 years agoreplace custom code with standard library functionality (HTTPServer.shutdown())
Antoine Pitrou [Tue, 27 Apr 2010 09:51:18 +0000 (09:51 +0000)]
replace custom code with standard library functionality (HTTPServer.shutdown())
+ enable test that was never run (!)
+ make tests faster by lowering polling timeout

14 years agoRemove uses of find_unused_port() in test_ssl, and small cleanups
Antoine Pitrou [Tue, 27 Apr 2010 08:40:51 +0000 (08:40 +0000)]
Remove uses of find_unused_port() in test_ssl, and small cleanups

14 years agoAdding versionadded to various new unittest functions in documentation
Michael Foord [Mon, 26 Apr 2010 23:36:47 +0000 (23:36 +0000)]
Adding versionadded to various new unittest functions in documentation

14 years agoIssue #6656: fix locale.format_string to handle escaped percents and mappings.
R. David Murray [Mon, 26 Apr 2010 21:17:14 +0000 (21:17 +0000)]
Issue #6656: fix locale.format_string to handle escaped percents and mappings.

Refactors format_string.  Includes tests for the two problems noted in
the issue, but as far as I can see there are no other tests that confirm
that format_string conforms to normal % formatting rules.

14 years agoWhen calling getpeername() in SSLSocket.__init__, only silence exceptions
Antoine Pitrou [Mon, 26 Apr 2010 17:23:33 +0000 (17:23 +0000)]
When calling getpeername() in SSLSocket.__init__, only silence exceptions
caused by the "socket not connected" condition.

14 years agoIssue 8325: Improve regrtest --help text.
R. David Murray [Mon, 26 Apr 2010 16:54:57 +0000 (16:54 +0000)]
Issue 8325: Improve regrtest --help text.

14 years agoRevert an accidental commit from r80492.
Brett Cannon [Sun, 25 Apr 2010 23:11:51 +0000 (23:11 +0000)]
Revert an accidental commit from r80492.

14 years agoWhen DeprecationWarning was silenced by default, it also silenced any use of -Q
Brett Cannon [Sun, 25 Apr 2010 22:33:36 +0000 (22:33 +0000)]
When DeprecationWarning was silenced by default, it also silenced any use of -Q
by default as well. This change fixes that by treating -Q like -3 when it comes
to DeprecationWarning; using it causes the silencing to not occur.

Fixes issue #7319.

14 years agoIssue #2302: Fix a race condition in SocketServer.BaseServer.shutdown,
Antoine Pitrou [Sun, 25 Apr 2010 21:40:32 +0000 (21:40 +0000)]
Issue #2302: Fix a race condition in SocketServer.BaseServer.shutdown,
where the method could block indefinitely if called just before the
event loop started running.  This also fixes the occasional freezes
witnessed in test_httpservers.

14 years agoReplace a Lock with a better suited Event.
Antoine Pitrou [Sun, 25 Apr 2010 21:15:50 +0000 (21:15 +0000)]
Replace a Lock with a better suited Event.