]> git.lyx.org Git - features.git/commitdiff
unix2dos.py: make it ready for python 3
authorUwe Stöhr <uwestoehr@lyx.org>
Fri, 8 Dec 2017 01:08:16 +0000 (02:08 +0100)
committerUwe Stöhr <uwestoehr@lyx.org>
Fri, 8 Dec 2017 01:08:16 +0000 (02:08 +0100)
fixes bug #10838

development/cmake/po/unix2dos.py

index 170b8a7a8dbbad562d4e25a2ba38916da9101a5e..85af0ecf98f572f534268deb153b9567bc5dabd5 100644 (file)
@@ -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