X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=lib%2Flyx2lyx%2Fgenerate_encoding_info.py;h=50725b76624c41490f09903ba4ae016a1aec6873;hb=e302757476e46910347ee94cf3141f615ea53ffd;hp=211ea48405d929b396fc7ac977aec569148022ef;hpb=a1564186deaabdd17323c4c8c03dea2c2c3f7d9a;p=lyx.git diff --git a/lib/lyx2lyx/generate_encoding_info.py b/lib/lyx2lyx/generate_encoding_info.py index 211ea48405..50725b7662 100644 --- a/lib/lyx2lyx/generate_encoding_info.py +++ b/lib/lyx2lyx/generate_encoding_info.py @@ -14,11 +14,12 @@ # # 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)