From 95bcff992461cd9476a5cde2faffdba64148a0f2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20St=C3=B6hr?= Date: Fri, 8 Dec 2017 02:08:16 +0100 Subject: [PATCH] unix2dos.py: make it ready for python 3 fixes bug #10838 --- development/cmake/po/unix2dos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2