[issue26803] syslog logging handler fails with address in unix abstract namespace

STINNER Victor report at bugs.python.org
Tue Apr 19 10:58:33 EDT 2016


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 <report at bugs.python.org>
<http://bugs.python.org/issue26803>
_______________________________________


More information about the Python-bugs-list mailing list