ESR silenced bogus warnings about missing macros...

...for ~files in the python WML parser.
This commit is contained in:
Elias Pschernig 2008-04-02 21:33:33 +00:00
parent ca3ce77c74
commit cfe78ed9b0

View file

@ -339,6 +339,11 @@ class Parser:
self.push_text(path, self.read_encoded(path), cd = os.path.dirname(path))
return None
# It's OK for user directories not to exist.
# Nothing prefixed with ~ can be a macro.
if macro.startswith("~"):
return None
# No file was found, try to do macro expansion.
self.push_text("macro", preserve)