fix bad logic

This commit is contained in:
Nikos Kouremenos 2006-11-18 23:48:31 +00:00
parent 49f1cd3bcf
commit 0c5a736d0e
1 changed files with 2 additions and 2 deletions

View File

@ -328,8 +328,8 @@ def from_one_line(msg):
# to match the regexp that follows it
# So here match '\\n' but not if you have a '\' before that
re = re.compile(r'(?<!\\)\\n')
msg = re.sub('\n', msg)
expr = re.compile(r'(?<!\\)\\n')
msg = expr.sub('\n', msg)
msg = msg.replace('\\\\', '\\')
# s12 = 'test\\ntest\\\\ntest'
# s13 = re.sub('\n', s12)