##// END OF EJS Templates
cleanup: rename check-translation.py checker function - don't hide global var
Mads Kiilerich -
r22203:35c2ea4c default
parent child Browse files
Show More
@@ -7,7 +7,7 b' import re'
7 7
8 8 checkers = []
9 9
10 def checker(level, msgidpat):
10 def levelchecker(level, msgidpat):
11 11 def decorator(func):
12 12 if msgidpat:
13 13 match = re.compile(msgidpat).search
@@ -33,7 +33,7 b' def match(checker, pe):'
33 33 ####################
34 34
35 35 def fatalchecker(msgidpat=None):
36 return checker('fatal', msgidpat)
36 return levelchecker('fatal', msgidpat)
37 37
38 38 @fatalchecker(r'\$\$')
39 39 def promptchoice(pe):
@@ -64,7 +64,7 b' def promptchoice(pe):'
64 64 ####################
65 65
66 66 def warningchecker(msgidpat=None):
67 return checker('warning', msgidpat)
67 return levelchecker('warning', msgidpat)
68 68
69 69 @warningchecker()
70 70 def taildoublecolons(pe):
General Comments 0
You need to be logged in to leave comments. Login now