| OLD | NEW |
| 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 Loading... |
| 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() |
| OLD | NEW |