changeset 11599:6fcc066c0c2c stable

check-code: warn about untranslated ui.warn calls
author Martin Geisler <mg@lazybytes.net>
date Fri, 16 Jul 2010 14:40:57 +0200
parents 636554d58665
children 76454cbc11e4
files contrib/check-code.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/contrib/check-code.py	Thu Jul 15 13:24:02 2010 +0200
+++ b/contrib/check-code.py	Fri Jul 16 14:40:57 2010 +0200
@@ -108,7 +108,7 @@
     (r'[^+=*!<>&| -](\s=|=\s)[^= ]',
      "wrong whitespace around ="),
     (r'raise Exception', "don't raise generic exceptions"),
-    (r'ui\.(status|progress|write|note)\([\'\"]x',
+    (r'ui\.(status|progress|write|note|warn)\([\'\"]x',
      "warning: unwrapped ui message"),
 ]