better comment
This commit is contained in:
parent
48d36a16e5
commit
d0c407f466
|
@ -53,9 +53,11 @@ class Logger:
|
||||||
if not os.path.isdir(LOGPATH):
|
if not os.path.isdir(LOGPATH):
|
||||||
print 'creating', LOGPATH, 'directory'
|
print 'creating', LOGPATH, 'directory'
|
||||||
os.mkdir(LOGPATH)
|
os.mkdir(LOGPATH)
|
||||||
# (?<!...) Matches if ... doesn't matche next, but doesn't consume
|
|
||||||
# the string.
|
# (?<!\\) is a lookbehind assertion which asks anything but '\'
|
||||||
# So matches on '\\n' but not if you have a '\' before that
|
# to match the regexp that follows it
|
||||||
|
|
||||||
|
# So here match '\\n' but not if you have a '\' before that
|
||||||
self.re = sre.compile(r'(?<!\\)\\n')
|
self.re = sre.compile(r'(?<!\\)\\n')
|
||||||
|
|
||||||
def write(self, kind, msg, jid, show = None, tim = None):
|
def write(self, kind, msg, jid, show = None, tim = None):
|
||||||
|
|
Loading…
Reference in New Issue