style: autopep8

Bug: 1468273
Reviewed-by: ted
MozReview-Commit-ID: 8j8EU3E08GP
This commit is contained in:
Sylvestre Ledru 2018-06-10 14:13:44 +02:00 committed by Emilio Cobos Álvarez
parent b539ae7fe5
commit 498592ff61
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
4 changed files with 12 additions and 7 deletions

View file

@ -49,7 +49,8 @@ STYLE_STRUCT_LIST = [
def main():
usage = "Usage: %s [ servo | gecko ] [ style-crate | geckolib <template> | html ]" % sys.argv[0]
usage = ("Usage: %s [ servo | gecko ] [ style-crate | geckolib <template> | html ]" %
sys.argv[0])
if len(sys.argv) < 3:
abort(usage)
product = sys.argv[1]
@ -122,7 +123,7 @@ def render(filename, **context):
# Uncomment to debug generated Python code:
# write("/tmp", "mako_%s.py" % os.path.basename(filename), template.code)
return template.render(**context).encode("utf8")
except:
except Exception:
# Uncomment to see a traceback in generated Python code:
# raise
abort(exceptions.text_error_template().render().encode("utf8"))