Show More
@@ -330,7 +330,7 b' def _preparepats():' | |||||
330 | p = re.sub(r'(?<!\\)\[\^', r'[^\\n', p) |
|
330 | p = re.sub(r'(?<!\\)\[\^', r'[^\\n', p) | |
331 |
|
331 | |||
332 | #print po, '=>', p |
|
332 | #print po, '=>', p | |
333 | pats[i] = (p,) + pseq[1:] |
|
333 | pats[i] = (re.compile(p, re.MULTILINE),) + pseq[1:] | |
334 | _preparepats() |
|
334 | _preparepats() | |
335 |
|
335 | |||
336 | class norepeatlogger(object): |
|
336 | class norepeatlogger(object): | |
@@ -421,7 +421,7 b' def checkfile(f, logfunc=_defaultlogger.' | |||||
421 |
|
421 | |||
422 | pos = 0 |
|
422 | pos = 0 | |
423 | n = 0 |
|
423 | n = 0 | |
424 |
for m in |
|
424 | for m in p.finditer(post): | |
425 | if prelines is None: |
|
425 | if prelines is None: | |
426 | prelines = pre.splitlines() |
|
426 | prelines = pre.splitlines() | |
427 | postlines = post.splitlines(True) |
|
427 | postlines = post.splitlines(True) |
General Comments 0
You need to be logged in to leave comments.
Login now