diff options
Diffstat (limited to 'contrib/mklog')
-rwxr-xr-x | contrib/mklog | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/mklog b/contrib/mklog index 125f52e..be1dc3a 100755 --- a/contrib/mklog +++ b/contrib/mklog @@ -380,7 +380,7 @@ def main(): if len(args) == 1 and args[0] == '-': input = sys.stdin elif len(args) == 1: - input = open(args[0], 'rb') + input = open(args[0]) else: error("too many arguments; for more details run with -h") @@ -442,7 +442,7 @@ def main(): shutil.copymode(args[0], tmp) # Open the temp file, clearing contents. - out = open(tmp, 'wb') + out = open(tmp, 'w') else: tmp = None out = sys.stdout |