summaryrefslogtreecommitdiffstats
path: root/Lib/logging/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/logging/config.py')
-rw-r--r--Lib/logging/config.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/logging/config.py b/Lib/logging/config.py
index 9de84e5..d2f23e5 100644
--- a/Lib/logging/config.py
+++ b/Lib/logging/config.py
@@ -984,7 +984,8 @@ def listen(port=DEFAULT_LOGGING_CONFIG_PORT, verify=None):
A simple TCP socket-based logging config receiver.
"""
- allow_reuse_address = 1
+ allow_reuse_address = True
+ allow_reuse_port = True
def __init__(self, host='localhost', port=DEFAULT_LOGGING_CONFIG_PORT,
handler=None, ready=None, verify=None):