#NEWLINE# def lint( self , vartok , linted_entry ) : #NEWLINE# #INDENT# msgs = [ ] #NEWLINE# idstr = msgid_tokens . str #NEWLINE# for s in idstr . msgid_strings : #NEWLINE# #INDENT# if ( not s ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# msgid_tokens = vartok . extract_tokens ( s ) #NEWLINE# msgid_tokens = [ vartok . extract_variable_name ( token ) for token in msgid_tokens ] #NEWLINE# for token in msgid_tokens : #NEWLINE# #INDENT# if ( ( len ( token ) == 1 ) and token . isalpha ( ) ) : #NEWLINE# #INDENT# msgs . append ( LintMessage ( WARNING , linted_entry . poentry . linenum , 0 , self . num , 'one character variable name "{0}"' . format ( token ) , linted_entry . poentry ) ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return msgs