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

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

Issue 843523002: Delete empty mojo python package, and prefix all python packages with mojo_ (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 11 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
« no previous file with comments | « mojo/public/python/mojo_system_impl.pyx ('k') | mojo/python/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {% from "module_macros.tmpl" import enum_values %} 1 {% from "module_macros.tmpl" import enum_values %}
2 {% from "module_macros.tmpl" import struct_descriptor %} 2 {% from "module_macros.tmpl" import struct_descriptor %}
3 # Copyright 2014 The Chromium Authors. All rights reserved. 3 # Copyright 2014 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 import mojo.bindings.descriptor as _descriptor 7 import mojo_bindings.descriptor as _descriptor
8 import mojo.bindings.reflection as _reflection 8 import mojo_bindings.reflection as _reflection
9 {% if imports %} 9 {% if imports %}
10 10
11 {% for import in imports %} 11 {% for import in imports %}
12 import {{import.python_module}} 12 import {{import.python_module}}
13 {% endfor %} 13 {% endfor %}
14 {% endif %} 14 {% endif %}
15 {#--- Constants #} 15 {#--- Constants #}
16 {% if module.constants %} 16 {% if module.constants %}
17 17
18 {% for constant in module.constants %} 18 {% for constant in module.constants %}
(...skipping 29 matching lines...) Expand all
48 'parameters': {{struct_descriptor(request_struct)|indent(8)}}, 48 'parameters': {{struct_descriptor(request_struct)|indent(8)}},
49 {% if method.response_parameters != None %} 49 {% if method.response_parameters != None %}
50 {% set response_struct = method|response_struct_from_method %} 50 {% set response_struct = method|response_struct_from_method %}
51 'responses': {{struct_descriptor(response_struct)|indent(8)}}, 51 'responses': {{struct_descriptor(response_struct)|indent(8)}},
52 {% endif %} 52 {% endif %}
53 }, 53 },
54 {% endfor %} 54 {% endfor %}
55 ], 55 ],
56 } 56 }
57 {% endfor %} 57 {% endfor %}
OLDNEW
« no previous file with comments | « mojo/public/python/mojo_system_impl.pyx ('k') | mojo/python/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698