aboutsummaryrefslogtreecommitdiffstats
path: root/Mailman/Logging/StampedLogger.py
diff options
context:
space:
mode:
authorYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2019-03-03 04:33:39 +0900
committerYasuhito FUTATSUKI at POEM <futatuki@poem.co.jp>2019-03-03 04:33:39 +0900
commit0b6ceac5bfe9fad6ce530d0369517516a3822634 (patch)
tree330318f1b7ea1d738a188735dc2f12de8acf813e /Mailman/Logging/StampedLogger.py
parentd8ee0235efb4052d0e489ba1dba0af812873df14 (diff)
parentae069ea19ddc31cb1ce9fa48f6b305ee6cdb4266 (diff)
downloadmailman2-0b6ceac5bfe9fad6ce530d0369517516a3822634.tar.gz
mailman2-0b6ceac5bfe9fad6ce530d0369517516a3822634.tar.xz
mailman2-0b6ceac5bfe9fad6ce530d0369517516a3822634.zip
merge lp:mailman/2.1 up to rev 1808
Diffstat (limited to 'Mailman/Logging/StampedLogger.py')
-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)