summaryrefslogtreecommitdiffstats
path: root/Lib/logging/handlers.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-07-07 20:54:48 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-07-07 20:54:48 (GMT)
commit4e0e1b6a540e664e89739456db4c706701bf062b (patch)
tree6a144e54fe6f0055d6e412181df0bbad458f8b10 /Lib/logging/handlers.py
parentb7e898a0e2a8d4077cbabeada039200fde5ada60 (diff)
downloadcpython-4e0e1b6a540e664e89739456db4c706701bf062b.zip
cpython-4e0e1b6a540e664e89739456db4c706701bf062b.tar.gz
cpython-4e0e1b6a540e664e89739456db4c706701bf062b.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/logging/handlers.py')
-rw-r--r--Lib/logging/handlers.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py
index 97632ea..d1e0a91 100644
--- a/Lib/logging/handlers.py
+++ b/Lib/logging/handlers.py
@@ -315,9 +315,9 @@ class SocketHandler(logging.Handler):
# is the first time back after a disconnect, or
# we've waited long enough.
if self.retryTime is None:
- attempt = 1
+ attempt = 1
else:
- attempt = (now >= self.retryTime)
+ attempt = (now >= self.retryTime)
if attempt:
try:
self.sock = self.makeSocket()
@@ -366,11 +366,11 @@ class SocketHandler(logging.Handler):
"""
ei = record.exc_info
if ei:
- dummy = self.format(record) # just to get traceback text into record.exc_text
- record.exc_info = None # to avoid Unpickleable error
+ dummy = self.format(record) # just to get traceback text into record.exc_text
+ record.exc_info = None # to avoid Unpickleable error
s = cPickle.dumps(record.__dict__, 1)
if ei:
- record.exc_info = ei # for next handler
+ record.exc_info = ei # for next handler
slen = struct.pack(">L", len(s))
return slen + s