cleanup: rename check-translation.py checker function - don't hide global var
authorMads Kiilerich <madski@unity3d.com>
Fri, 15 Aug 2014 16:20:47 +0200
changeset 22203 35c2ea4ca26f
parent 22202 684bad8c4265
child 22204 f8dc6599da5d
cleanup: rename check-translation.py checker function - don't hide global var
i18n/check-translation.py
--- a/i18n/check-translation.py	Fri Aug 15 04:37:45 2014 +0200
+++ b/i18n/check-translation.py	Fri Aug 15 16:20:47 2014 +0200
@@ -7,7 +7,7 @@
 
 checkers = []
 
-def checker(level, msgidpat):
+def levelchecker(level, msgidpat):
     def decorator(func):
         if msgidpat:
             match = re.compile(msgidpat).search
@@ -33,7 +33,7 @@
 ####################
 
 def fatalchecker(msgidpat=None):
-    return checker('fatal', msgidpat)
+    return levelchecker('fatal', msgidpat)
 
 @fatalchecker(r'\$\$')
 def promptchoice(pe):
@@ -64,7 +64,7 @@
 ####################
 
 def warningchecker(msgidpat=None):
-    return checker('warning', msgidpat)
+    return levelchecker('warning', msgidpat)
 
 @warningchecker()
 def taildoublecolons(pe):