X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=utils%2Funix2dos.py;fp=utils%2Funix2dos.py;h=0000000000000000000000000000000000000000;hb=e4c14cdbdf2fe805e79cd96ded236f57e7b89060;hp=72684722c256d6f8f199e2c79b51c3fd89f5d560;hpb=454138ff8a20f6edb9b65a910101403d8b520643;p=opencv diff --git a/utils/unix2dos.py b/utils/unix2dos.py deleted file mode 100644 index 7268472..0000000 --- a/utils/unix2dos.py +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env python -############### -import sys - -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" ) - - if len(outstr) == len(instr): - continue - - outfile = open( fname, "wb" ) - outfile.write( outstr ) - outfile.close() -