From: Guido van Rossum Date: Wed, 8 Oct 1997 15:23:23 +0000 (+0000) Subject: Open files in binary mode (Jack) X-Git-Tag: v1.5a4~20 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2861f4ec6e6ed170490c302543faea5702426e81;p=python Open files in binary mode (Jack) --- diff --git a/Lib/pstats.py b/Lib/pstats.py index e87478ea7d..7e4a3851e7 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: