1. Armin Rigo
  2. cpython-withatomic

Commits

Vinay Sajip  committed a311a10

Patch by Jeremy Katz (SF #1609407)

  • Participants
  • Parent commits 39ad99d
  • Branches 2.4

Comments (0)

Files changed (1)

File Lib/logging/handlers.py

View file
  • Ignore whitespace
         self.address = address
         self.facility = facility
         if type(address) == types.StringType:
+            self.unixsocket = 1
             self._connect_unixsocket(address)
-            self.unixsocket = 1
         else:
+            self.unixsocket = 0
             self.socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
-            self.unixsocket = 0
 
         self.formatter = None