# HG changeset patch # User Martin Geisler # Date 2010-07-16 12:40:57 # Node ID 6fcc066c0c2cc4a39861ccfc5010ee9e35fd0fd4 # Parent 636554d58665406a017b5c680d8003b331a5dbae check-code: warn about untranslated ui.warn calls diff --git a/contrib/check-code.py b/contrib/check-code.py --- a/contrib/check-code.py +++ b/contrib/check-code.py @@ -108,7 +108,7 @@ pypats = [ (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"), ]