diff --git a/src/libprs500/__init__.py b/src/libprs500/__init__.py index f997919bbe..85ba74fdd4 100644 --- a/src/libprs500/__init__.py +++ b/src/libprs500/__init__.py @@ -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 " diff --git a/src/libprs500/cli/main.py b/src/libprs500/cli/main.py index f9078f1ec7..9477fb1052 100755 --- a/src/libprs500/cli/main.py +++ b/src/libprs500/cli/main.py @@ -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()