Another try at fixing AI0867's bug.
This commit is contained in:
parent
881e5e3ff6
commit
339599149f
1 changed files with 2 additions and 4 deletions
|
@ -783,10 +783,8 @@ def translator(filename, mapxforms, textxform):
|
|||
refname = line[line.find("{"):line.rfind("}")]
|
||||
# Ignore all-caps macro arguments.
|
||||
if refname == refname.upper():
|
||||
print \
|
||||
'"%s", line %d: warning, correctness of %s cannot be checked' \
|
||||
% (filename, lineno+1, refname)
|
||||
elif 'mask=' in line and not refname.endswith(".mask"):
|
||||
pass
|
||||
elif 'mask=' in line and not (refname.endwith("}") or refname.endswith(".mask")):
|
||||
print \
|
||||
'"%s", line %d: fatal error, mask file without .mask extension (%s)' \
|
||||
% (filename, lineno+1, refname)
|
||||
|
|
Loading…
Add table
Reference in a new issue