Skip to content
Snippets Groups Projects
Commit d0c407f4 authored by nkour's avatar nkour
Browse files

better comment

parent 48d36a16
No related branches found
No related tags found
No related merge requests found
......@@ -53,9 +53,11 @@ def __init__(self):
if not os.path.isdir(LOGPATH):
print 'creating', LOGPATH, 'directory'
os.mkdir(LOGPATH)
# (?<!...) Matches if ... doesn't matche next, but doesn't consume
# the string.
# So matches on '\\n' but not if you have a '\' before that
# (?<!\\) is a lookbehind assertion which asks anything but '\'
# 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')
def write(self, kind, msg, jid, show = None, tim = None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment