]> git.lyx.org Git - lyx.git/blobdiff - lib/lyx2lyx/generate_encoding_info.py
Add support for CALS tables in DocBook.
[lyx.git] / lib / lyx2lyx / generate_encoding_info.py
index 211ea48405d929b396fc7ac977aec569148022ef..50725b76624c41490f09903ba4ae016a1aec6873 100644 (file)
 #
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
 
 """ This module parses lib/languages and prints it as a python
 dictionary, ready to use by other python modules"""
 
+from __future__ import print_function
 import pprint
 
 def parse_line(line):
@@ -55,8 +56,8 @@ if __name__ == '__main__':
             lang[tmp[0]] = tmp[1:]
 
 
-    print "# This file is generated by generate_incoding_info.py from lib/languages file."
-    print "# Do not change this file directly."
-    print
-    print "lang = ",
+    print ("# This file is generated by generate_incoding_info.py from lib/languages file.")
+    print ("# Do not change this file directly.")
+    print ()
+    print ("lang = ", end = " ")
     pprint.pprint(lang)