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

Side by Side Diff: mojo/public/third_party/jinja2/meta.py

Issue 1410053006: Move third_party/mojo/src/mojo/public to mojo/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 5 years, 1 month 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/third_party/jinja2/loaders.py ('k') | mojo/public/third_party/jinja2/nodes.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 """ 2 """
3 jinja2.meta 3 jinja2.meta
4 ~~~~~~~~~~~ 4 ~~~~~~~~~~~
5 5
6 This module implements various functions that exposes information about 6 This module implements various functions that exposes information about
7 templates that might be interesting for various kinds of applications. 7 templates that might be interesting for various kinds of applications.
8 8
9 :copyright: (c) 2010 by the Jinja Team, see AUTHORS for more details. 9 :copyright: (c) 2010 by the Jinja Team, see AUTHORS for more details.
10 :license: BSD, see LICENSE for more details. 10 :license: BSD, see LICENSE for more details.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 # yield the consts that are strings. We could warn here for 94 # yield the consts that are strings. We could warn here for
95 # non string values 95 # non string values
96 elif isinstance(node, nodes.Include) and \ 96 elif isinstance(node, nodes.Include) and \
97 isinstance(node.template.value, (tuple, list)): 97 isinstance(node.template.value, (tuple, list)):
98 for template_name in node.template.value: 98 for template_name in node.template.value:
99 if isinstance(template_name, string_types): 99 if isinstance(template_name, string_types):
100 yield template_name 100 yield template_name
101 # something else we don't care about, we could warn here 101 # something else we don't care about, we could warn here
102 else: 102 else:
103 yield None 103 yield None
OLDNEW
« no previous file with comments | « mojo/public/third_party/jinja2/loaders.py ('k') | mojo/public/third_party/jinja2/nodes.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698