From: Uwe Stöhr Date: Fri, 8 Dec 2017 23:24:20 +0000 (+0100) Subject: unix2dos.py: make it ready for python 3 X-Git-Tag: 2.3.0rc2~183 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=8997270a779771d87c53d027ae80c8f3d5ba5367;p=features.git unix2dos.py: make it ready for python 3 fixes bug #10838 --- diff --git a/development/cmake/po/unix2dos.py b/development/cmake/po/unix2dos.py index 170b8a7a8d..85af0ecf98 100644 --- a/development/cmake/po/unix2dos.py +++ b/development/cmake/po/unix2dos.py @@ -7,7 +7,7 @@ for fname in sys.argv[1:]: infile = open( fname, "rb" ) instr = infile.read() infile.close() - outstr = instr.replace( "\r\n", "\n" ).replace( "\r", "\n" ).replace( "\n", "\r\n" ) + outstr = instr.replace( b"\r\n", b"\n" ).replace( b"\r", b"\n" ).replace( b"\n", b"\r\n" ) if len(outstr) == len(instr): continue