summaryrefslogtreecommitdiff
path: root/Lib/logging
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-07-07 20:54:48 +0000
committerTim Peters <tim.peters@gmail.com>2004-07-07 20:54:48 +0000
commit4e0e1b6a540e664e89739456db4c706701bf062b (patch)
tree6a144e54fe6f0055d6e412181df0bbad458f8b10 /Lib/logging
parentb7e898a0e2a8d4077cbabeada039200fde5ada60 (diff)
downloadcpython-git-4e0e1b6a540e664e89739456db4c706701bf062b.tar.gz
Whitespace normalization.
Diffstat (limited to 'Lib/logging')
-rw-r--r--Lib/logging/__init__.py2
-rw-r--r--Lib/logging/handlers.py10
2 files changed, 6 insertions, 6 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py
index f4c552d9c2..cf4d782279 100644
--- a/Lib/logging/__init__.py
+++ b/Lib/logging/__init__.py
@@ -1162,7 +1162,7 @@ def basicConfig(**kwargs):
root.addHandler(hdlr)
level = kwargs.get("level")
if level:
- root.setLevel(level)
+ root.setLevel(level)
#---------------------------------------------------------------------------
# Utility functions at module level.
diff --git a/Lib/logging/handlers.py b/Lib/logging/handlers.py
index 97632ea008..d1e0a91716 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