mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
test_logging coverage improvements.
This commit is contained in:
parent
86a96cee23
commit
5a35b06d5e
2 changed files with 46 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue