Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(280)

Side by Side Diff: mojo/public/tools/bindings/generators/python_templates/module.py.tmpl

Issue 517353002: mojo: Starting generator for python bindings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove not-to-commit Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4 {% if imports %}
5
6 {% for import in imports %}
7 import {{import.python_module}}
8 {% endfor %}
9 {% endif %}
10 {#--- Constants #}
11 {% if module.constants %}
12
13 {% for constant in module.constants %}
14 {{constant|name}} = {{constant.value|expression_to_text}}
15 {% endfor %}
16 {% endif %}
OLDNEW
« no previous file with comments | « mojo/public/tools/bindings/generators/mojom_python_generator.py ('k') | mojo/public/tools/bindings/mojom.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698