summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVinay Sajip <vinay_sajip@yahoo.co.uk>2006-12-11 14:07:16 (GMT)
committerVinay Sajip <vinay_sajip@yahoo.co.uk>2006-12-11 14:07:16 (GMT)
commit5492e1722af1ce85b8248e30cf35e957429d161d (patch)
tree023c228170d0f8490bbb73b14e2de006382610ba
parentf54a63b3b5ff6c0fd2d115206d3cc60591318bb5 (diff)
downloadcpython-5492e1722af1ce85b8248e30cf35e957429d161d.zip
cpython-5492e1722af1ce85b8248e30cf35e957429d161d.tar.gz
cpython-5492e1722af1ce85b8248e30cf35e957429d161d.tar.bz2
Patch by Jeremy Katz (SF #1609407)
-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 3552950..4ef896e 100644
--- a/Lib/logging/handlers.py
+++ b/Lib/logging/handlers.py
@@ -586,11 +586,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