STINNER Victor added the comment:

The following change looks good to me:

-        if isinstance(address, str):
+        if isinstance(address, (str, bytes)):
             self.unixsocket = True
             self._connect_unixsocket(address)

But I don't understand the testcase. Is an address starting with a NULL 
character a special address? How does it the bytes address case?

+        # override the definition in the base class
+        self.address = '\x00python_logging_test'

"syslog logging handler fails with address in unix abstract namespace"

What is the unix abstract namespace?

----------
nosy: +haypo

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26803>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to