From 8997270a779771d87c53d027ae80c8f3d5ba5367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20St=C3=B6hr?= Date: Sat, 9 Dec 2017 00:24:20 +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