Open files in binary mode (Jack)

This commit is contained in:
Guido van Rossum 1997-10-08 15:23:23 +00:00
parent cbf3dd53b4
commit 2861f4ec6e
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class Stats:
def load_stats(self, arg):
if not arg: self.stats = {}
elif type(arg) == type(""):
f = open(arg, 'r')
f = open(arg, 'rb')
self.stats = marshal.load(f)
f.close()
try: