mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Make commented code python3 compatible
This commit is contained in:
parent
8019732b39
commit
7328cc0cc0
@ -12,6 +12,7 @@
|
||||
# This script reads a unicode symbol file and completes it in the given range
|
||||
|
||||
|
||||
from __future__ import print_function
|
||||
import os, re, string, sys, unicodedata
|
||||
import io
|
||||
|
||||
@ -64,7 +65,7 @@ def complete(lines, start, stop):
|
||||
for i in range(start, stop):
|
||||
# This catches both comments (lines[l][0] == -1) and code points less than i
|
||||
while l < len(lines) and lines[l][0] < i:
|
||||
# print lines[l]
|
||||
# print(lines[l])
|
||||
l = l + 1
|
||||
continue
|
||||
if l >= len(lines) or lines[l][0] != i:
|
||||
@ -80,7 +81,7 @@ def complete(lines, start, stop):
|
||||
combining = ""
|
||||
line = [i, '#0x%04x "" "" "%s" "" "" # %s' % (i, combining, name)]
|
||||
lines.insert(l, line)
|
||||
# print lines[l]
|
||||
# print(lines[l])
|
||||
l = l + 1
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user