summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/pstats.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pstats.py b/Lib/pstats.py
index e87478e..7e4a385 100644
--- a/Lib/pstats.py
+++ b/Lib/pstats.py
@@ -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: