Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
805ddaa3
Commit
805ddaa3
authored
Sep 27, 2010
by
Vinay Sajip
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #9947: logging: backported locking fix from py3k.
parent
3ab905f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
Lib/logging/config.py
Lib/logging/config.py
+7
-5
No files found.
Lib/logging/config.py
View file @
805ddaa3
...
...
@@ -19,7 +19,7 @@ Configuration functions for the logging package for Python. The core package
is based on PEP 282 and comments thereto in comp.lang.python, and influenced
by Apache's log4j system.
Copyright (C) 2001-20
08
Vinay Sajip. All Rights Reserved.
Copyright (C) 2001-20
10
Vinay Sajip. All Rights Reserved.
To use, simply 'import logging' and log away!
"""
...
...
@@ -370,8 +370,10 @@ def stopListening():
Stop the listening server which was created with a call to listen().
"""
global
_listener
if
_listener
:
logging
.
_acquireLock
()
_listener
.
abort
=
1
_listener
=
None
logging
.
_acquireLock
()
try
:
if
_listener
:
_listener
.
abort
=
1
_listener
=
None
finally
:
logging
.
_releaseLock
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment