Remove comments (lines starting with '#') from templates
This commit is contained in:
parent
07695dff71
commit
dde2b9ae62
@ -47,6 +47,9 @@ class LoraxTemplate(object):
|
||||
lines = map(lambda line: line.strip(), lines)
|
||||
lines = filter(lambda line: line, lines)
|
||||
|
||||
# remove comments
|
||||
lines = filter(lambda line: not line.startswith("#"), lines)
|
||||
|
||||
# mako template now returns unicode strings
|
||||
lines = map(lambda line: line.encode("ascii"), lines)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user