aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-10-08 15:23:23 +0000
committerGuido van Rossum <guido@python.org>1997-10-08 15:23:23 +0000
commit2861f4ec6e6ed170490c302543faea5702426e81 (patch)
tree1497f26fded74cea8d2b19b82c03da7af3e90804
parentUse better timer on the mac (diff)
downloadcpython-2861f4ec6e6ed170490c302543faea5702426e81.tar.gz
cpython-2861f4ec6e6ed170490c302543faea5702426e81.tar.bz2
cpython-2861f4ec6e6ed170490c302543faea5702426e81.zip
Open files in binary mode (Jack)
-rw-r--r--Lib/pstats.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pstats.py b/Lib/pstats.py
index e87478ea7d3..7e4a3851e75 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: