]> git.lyx.org Git - lyx.git/blobdiff - lib/lyx2lyx/unicode_symbols.py
EmbeddedObjects.lyx: more updates for the box description
[lyx.git] / lib / lyx2lyx / unicode_symbols.py
index 9df65e83f7990f0147ca1c091106a9240d768ea1..9171c180ef559a8891bd8304f199daa7463f6e70 100644 (file)
 
 import sys, os, re
 
+# Provide support for both python 2 and 3
+PY2 = sys.version_info[0] == 2
+if not PY2:
+    unichr = chr
+# End of code to support for both python 2 and 3
+
 def read_unicodesymbols():
     " Read the unicodesymbols list of unicode characters and corresponding commands."
     pathname = os.path.abspath(os.path.dirname(sys.argv[0]))