File: python_table.py.j2

package info (click to toggle)
wcwidth 0.2.13%2Bdfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 844 kB
  • sloc: python: 1,647; makefile: 17
file content (15 lines) | stat: -rw-r--r-- 467 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
"""
Exports {{ variable_name }} table keyed by supporting unicode version level.
"""
{{ variable_name }} = {
{%- for table_version, table_def in table.items() %}
    '{{ table_version }}': (
        # Source: {{ table_def.filename }}
        # Date: {{ table_def.date }}
        #
{%- for hex_start, hex_end, txt_description in table_def.hex_range_descriptions %}
        ({{ hex_start }}, {{ hex_end }},),  # {{txt_description}}
{%- endfor %}
    ),
{%- endfor %}
}