mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: autopep8
Bug: 1468273 Reviewed-by: ted MozReview-Commit-ID: 8j8EU3E08GP
This commit is contained in:
parent
b539ae7fe5
commit
498592ff61
4 changed files with 12 additions and 7 deletions
|
@ -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"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue