]> git.lyx.org Git - lyx.git/blobdiff - development/tools/unicodesymbols.py
Add missing revert routine to lyx_2_0.py
[lyx.git] / development / tools / unicodesymbols.py
index 07ae50ffbc28f0fd3654cdc6c39ca258ce37aa92..d507f4a6813042fc13d267321de1c0cdc0a2b6b4 100755 (executable)
@@ -1,7 +1,7 @@
-#! /usr/bin/env python
+#! /usr/bin/python3
 # -*- coding: utf-8 -*-
 
-# file unciodesymbols.py
+# file unicodesymbols.py
 # This file is part of LyX, the document processor.
 # Licence details can be found in the file COPYING.
 
 # 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
 
+
 def usage(prog_name):
     return ("Usage: %s start stop inputfile outputfile\n" % prog_name +
             "or     %s start stop <inputfile >outputfile" % prog_name)
@@ -64,7 +66,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 +82,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