changeset 22203:35c2ea4ca26f

cleanup: rename check-translation.py checker function - don't hide global var
author Mads Kiilerich <madski@unity3d.com>
date Fri, 15 Aug 2014 16:20:47 +0200
parents 684bad8c4265
children f8dc6599da5d
files i18n/check-translation.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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):