summaryrefslogtreecommitdiffstats
path: root/Lib/logging
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2011-04-27 10:31:14 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2011-04-27 10:31:14 (GMT)
commit5a35b06d5e5b6d12abcc1529cbb643fdcf0d35ab (patch)
treea492e1c7f09f682c52c08c073e4e9f8f94355efa /Lib/logging
parent86a96cee23cfba177f93ceb69f7441e66731c06f (diff)
downloadcpython-5a35b06d5e5b6d12abcc1529cbb643fdcf0d35ab.zip
cpython-5a35b06d5e5b6d12abcc1529cbb643fdcf0d35ab.tar.gz
cpython-5a35b06d5e5b6d12abcc1529cbb643fdcf0d35ab.tar.bz2
test_logging coverage improvements.
Diffstat (limited to 'Lib/logging')
-rw-r--r--Lib/logging/handlers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py
index 42c2347..322b969 100644
--- a/Lib/logging/handlers.py
+++ b/Lib/logging/handlers.py
@@ -713,10 +713,10 @@ class SysLogHandler(logging.Handler):
self.socktype = socktype
if isinstance(address, str):
- self.unixsocket = 1
+ self.unixsocket = True
self._connect_unixsocket(address)
else:
- self.unixsocket = 0
+ self.unixsocket = False
self.socket = socket.socket(socket.AF_INET, socktype)
if socktype == socket.SOCK_STREAM:
self.socket.connect(address)