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

Side by Side Diff: mojo/public/third_party/jinja2/_stringdefs.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/_compat.py ('k') | mojo/public/third_party/jinja2/bccache.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._stringdefs 3 jinja2._stringdefs
4 ~~~~~~~~~~~~~~~~~~ 4 ~~~~~~~~~~~~~~~~~~
5 5
6 Strings of all Unicode characters of a certain category. 6 Strings of all Unicode characters of a certain category.
7 Used for matching in Unicode-aware languages. Run to regenerate. 7 Used for matching in Unicode-aware languages. Run to regenerate.
8 8
9 Inspired by chartypes_create.py from the MoinMoin project, original 9 Inspired by chartypes_create.py from the MoinMoin project, original
10 implementation from Pygments. 10 implementation from Pygments.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 try: 123 try:
124 Cs = eval(r"%r") 124 Cs = eval(r"%r")
125 except UnicodeDecodeError: 125 except UnicodeDecodeError:
126 Cs = '' # Jython can't handle isolated surrogates\n\n""" % val) 126 Cs = '' # Jython can't handle isolated surrogates\n\n""" % val)
127 else: 127 else:
128 f.write('%s = %r\n\n' % (cat, val)) 128 f.write('%s = %r\n\n' % (cat, val))
129 f.write('cats = %r\n\n' % sorted(categories.keys())) 129 f.write('cats = %r\n\n' % sorted(categories.keys()))
130 130
131 f.write(footer) 131 f.write(footer)
132 f.close() 132 f.close()
OLDNEW
« no previous file with comments | « mojo/public/third_party/jinja2/_compat.py ('k') | mojo/public/third_party/jinja2/bccache.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698