remove spurious string substitution from a "pango string" message
The format of this message appears to have been copied from the preceding "pango string" messages, which have a "%s" where "< or >" is. But it causes wmllint to crash with the traceback, "TypeError: not all arguments converted during string formatting".
This commit is contained in:
parent
e6f69ae056
commit
419fabdad8
1 changed files with 1 additions and 1 deletions
|
@ -845,7 +845,7 @@ def pangoize(message, filename, line):
|
|||
if message[here:here+4] != ">":
|
||||
message = message[:here] + ">" + message[here+1:]
|
||||
else:
|
||||
print '"%s", line %d: < or > in pango string requires manual fix.' % (filename, line, oldstyle)
|
||||
print '"%s", line %d: < or > in pango string requires manual fix.' % (filename, line)
|
||||
return message
|
||||
|
||||
class WmllintIterator(WmlIterator):
|
||||
|
|
Loading…
Add table
Reference in a new issue