Make commented code python3 compatible

This commit is contained in:
Georg Baum 2016-06-08 18:41:57 +02:00
parent 8019732b39
commit 7328cc0cc0

View File

@ -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