Fix windows bug in cp command (Destination files were not being opened in binary mode). Version bump. Fixes #24

This commit is contained in:
Kovid Goyal 2007-01-28 17:11:22 +00:00
parent 7530d37ae2
commit 8327ce9c1e
2 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ You may have to adjust the GROUP and the location of the rules file to
suit your distribution.
"""
__version__ = "0.3.6"
__version__ = "0.3.7"
__docformat__ = "epytext"
__author__ = "Kovid Goyal <kovid@kovidgoyal.net>"

View File

@ -250,7 +250,7 @@ def main():
if os.path.isdir(outfile):
outfile = os.path.join(outfile, path[path.rfind("/")+1:])
try:
outfile = open(outfile, "w")
outfile = open(outfile, "wb")
except IOError, e:
print >> sys.stderr, e
parser.print_help()
@ -259,7 +259,7 @@ def main():
outfile.close()
elif args[1].startswith("prs500:"):
try:
infile = open(args[0], "r")
infile = open(args[0], "rb")
except IOError, e:
print >> sys.stderr, e
parser.print_help()