mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00
Merged revisions 87341 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r87341 | antoine.pitrou | 2010-12-17 18:42:16 +0100 (ven., 17 déc. 2010) | 4 lines Issue #4188: Avoid creating dummy thread objects when logging operations from the threading module (with the internal verbose flag activated). ........
This commit is contained in:
parent
3396e8671d
commit
bc7f20cea4
2 changed files with 12 additions and 2 deletions
|
@ -50,8 +50,14 @@ if __debug__:
|
||||||
def _note(self, format, *args):
|
def _note(self, format, *args):
|
||||||
if self._verbose:
|
if self._verbose:
|
||||||
format = format % args
|
format = format % args
|
||||||
format = "%s: %s\n" % (
|
# Issue #4188: calling current_thread() can incur an infinite
|
||||||
current_thread().name, format)
|
# recursion if it has to create a DummyThread on the fly.
|
||||||
|
ident = _get_ident()
|
||||||
|
try:
|
||||||
|
name = _active[ident].name
|
||||||
|
except KeyError:
|
||||||
|
name = "<OS thread %d>" % ident
|
||||||
|
format = "%s: %s\n" % (name, format)
|
||||||
_sys.stderr.write(format)
|
_sys.stderr.write(format)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
|
@ -20,6 +20,10 @@ Core and Builtins
|
||||||
|
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #4188: Avoid creating dummy thread objects when logging operations
|
||||||
|
from the threading module (with the internal verbose flag activated).
|
||||||
|
|
||||||
- Issue #9721: Fix the behavior of urljoin when the relative url starts with a
|
- Issue #9721: Fix the behavior of urljoin when the relative url starts with a
|
||||||
';' character. Patch by Wes Chow.
|
';' character. Patch by Wes Chow.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue