summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-10-08 15:23:23 (GMT)
committerGuido van Rossum <guido@python.org>1997-10-08 15:23:23 (GMT)
commit2861f4ec6e6ed170490c302543faea5702426e81 (patch)
tree1497f26fded74cea8d2b19b82c03da7af3e90804
parentcbf3dd53b449995f3fa5fce89161985766cfe8cf (diff)
downloadcpython-2861f4ec6e6ed170490c302543faea5702426e81.zip
cpython-2861f4ec6e6ed170490c302543faea5702426e81.tar.gz
cpython-2861f4ec6e6ed170490c302543faea5702426e81.tar.bz2
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 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: