Show More
@@ -7,7 +7,7 b' import re' | |||||
7 |
|
7 | |||
8 | checkers = [] |
|
8 | checkers = [] | |
9 |
|
9 | |||
10 | def checker(level, msgidpat): |
|
10 | def levelchecker(level, msgidpat): | |
11 | def decorator(func): |
|
11 | def decorator(func): | |
12 | if msgidpat: |
|
12 | if msgidpat: | |
13 | match = re.compile(msgidpat).search |
|
13 | match = re.compile(msgidpat).search | |
@@ -33,7 +33,7 b' def match(checker, pe):' | |||||
33 | #################### |
|
33 | #################### | |
34 |
|
34 | |||
35 | def fatalchecker(msgidpat=None): |
|
35 | def fatalchecker(msgidpat=None): | |
36 | return checker('fatal', msgidpat) |
|
36 | return levelchecker('fatal', msgidpat) | |
37 |
|
37 | |||
38 | @fatalchecker(r'\$\$') |
|
38 | @fatalchecker(r'\$\$') | |
39 | def promptchoice(pe): |
|
39 | def promptchoice(pe): | |
@@ -64,7 +64,7 b' def promptchoice(pe):' | |||||
64 | #################### |
|
64 | #################### | |
65 |
|
65 | |||
66 | def warningchecker(msgidpat=None): |
|
66 | def warningchecker(msgidpat=None): | |
67 | return checker('warning', msgidpat) |
|
67 | return levelchecker('warning', msgidpat) | |
68 |
|
68 | |||
69 | @warningchecker() |
|
69 | @warningchecker() | |
70 | def taildoublecolons(pe): |
|
70 | def taildoublecolons(pe): |
General Comments 0
You need to be logged in to leave comments.
Login now