mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Tidy
This commit is contained in:
parent
bf8edd1596
commit
515c5ef540
3 changed files with 5 additions and 7 deletions
|
@ -4,7 +4,6 @@
|
|||
|
||||
import json
|
||||
import os.path
|
||||
import re
|
||||
import sys
|
||||
|
||||
BASE = os.path.dirname(__file__)
|
||||
|
@ -49,11 +48,11 @@ def render(filename, **context):
|
|||
strict_undefined=True,
|
||||
filename=filename)
|
||||
# Uncomment to debug generated Python code:
|
||||
#write("/tmp", "mako_%s.py" % os.path.basename(filename), template.code)
|
||||
# write("/tmp", "mako_%s.py" % os.path.basename(filename), template.code)
|
||||
return template.render(**context).encode("utf8")
|
||||
except:
|
||||
# Uncomment to see a traceback in generated Python code:
|
||||
#raise
|
||||
# raise
|
||||
abort(exceptions.text_error_template().render().encode("utf8"))
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue