From 7328cc0cc09af316f4078ce2ea062876bd16bb3a Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Wed, 8 Jun 2016 18:41:57 +0200 Subject: [PATCH] Make commented code python3 compatible --- development/tools/unicodesymbols.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/development/tools/unicodesymbols.py b/development/tools/unicodesymbols.py index 07ae50ffbc..7338d2f0d5 100755 --- a/development/tools/unicodesymbols.py +++ b/development/tools/unicodesymbols.py @@ -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