From: Vinay Sajip Date: Mon, 11 Dec 2006 14:09:34 +0000 (+0000) Subject: Patch by Jeremy Katz (SF #1609407) X-Git-Tag: v2.4.5c1~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e22f2610a3f1dfe4eee827b8b8e243ac24331c8f;p=thirdparty%2FPython%2Fcpython.git Patch by Jeremy Katz (SF #1609407) --- diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py index 70bd5d4faecf..1024fc3c2976 100644 --- a/Lib/logging/handlers.py +++ b/Lib/logging/handlers.py @@ -574,11 +574,11 @@ class SysLogHandler(logging.Handler): self.address = address self.facility = facility if type(address) == types.StringType: - self._connect_unixsocket(address) self.unixsocket = 1 + self._connect_unixsocket(address) else: - self.socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) self.unixsocket = 0 + self.socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) self.formatter = None