diff options
author | Georg Brandl <georg@python.org> | 2006-11-26 19:27:51 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-11-26 19:27:51 (GMT) |
commit | 2286441a815b3dc2d9f5fa4e71c3d38875e9b463 (patch) | |
tree | 7b189cec20e72697a9c2a4ebf8999522b58459dc /Lib | |
parent | 9147f7ed8bca93527f05be82ae741320e8374ca3 (diff) | |
download | cpython-2286441a815b3dc2d9f5fa4e71c3d38875e9b463.zip cpython-2286441a815b3dc2d9f5fa4e71c3d38875e9b463.tar.gz cpython-2286441a815b3dc2d9f5fa4e71c3d38875e9b463.tar.bz2 |
Bug #1603321: make pstats.Stats accept Unicode file paths.
(backport from rev. 52845)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/pstats.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/pstats.py b/Lib/pstats.py index 4e94b0c..bdbb27e 100644 --- a/Lib/pstats.py +++ b/Lib/pstats.py @@ -116,7 +116,7 @@ class Stats: def load_stats(self, arg): if not arg: self.stats = {} - elif type(arg) == type(""): + elif isinstance(arg, basestring): f = open(arg, 'rb') self.stats = marshal.load(f) f.close() |