aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Logging
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2019-01-28 21:48:13 -0800
committerMark Sapiro <mark@msapiro.net>2019-01-28 21:48:13 -0800
commitdd5dc51fc773b56c6f4b33ab739d2b148ec45337 (patch)
tree325dddc0d3c1efffdd81d825ed6dcfe6265ae8a9 /Mailman/Logging
parent189515c4d3f1ed52b83d63577ebefec5c991b281 (diff)
downloadmailman2-dd5dc51fc773b56c6f4b33ab739d2b148ec45337.tar.gz
mailman2-dd5dc51fc773b56c6f4b33ab739d2b148ec45337.tar.xz
mailman2-dd5dc51fc773b56c6f4b33ab739d2b148ec45337.zip
Expand tabs in Python code.
Diffstat (limited to 'Mailman/Logging')
-rw-r--r--Mailman/Logging/StampedLogger.py26
1 files changed, 13 insertions, 13 deletions
diff --git a/Mailman/Logging/StampedLogger.py b/Mailman/Logging/StampedLogger.py
index 2657d7fc..5d259e38 100644
--- a/Mailman/Logging/StampedLogger.py
+++ b/Mailman/Logging/StampedLogger.py
@@ -42,14 +42,14 @@ class StampedLogger(Logger):
"""
def __init__(self, category, label=None, manual_reprime=0, nofail=1,
immediate=1):
- """If specified, optional label is included after timestamp.
+ """If specified, optional label is included after timestamp.
Other options are passed to the Logger class initializer.
"""
- self.__label = label
+ self.__label = label
self.__manual_reprime = manual_reprime
self.__primed = 1
self.__bol = 1
- Logger.__init__(self, category, nofail, immediate)
+ Logger.__init__(self, category, nofail, immediate)
def reprime(self):
"""Reset so timestamp will be included with next write."""
@@ -77,13 +77,13 @@ class StampedLogger(Logger):
self.__bol = 0
def writelines(self, lines):
- first = 1
- for l in lines:
- if first:
- self.write(l)
- first = 0
- else:
- if l and l[0] not in [' ', '\t', '\n']:
- Logger.write(self, ' ' + l)
- else:
- Logger.write(self, l)
+ first = 1
+ for l in lines:
+ if first:
+ self.write(l)
+ first = 0
+ else:
+ if l and l[0] not in [' ', '\t', '\n']:
+ Logger.write(self, ' ' + l)
+ else:
+ Logger.write(self, l)