diff options
author | Georg Brandl <georg@python.org> | 2006-11-26 19:27:47 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2006-11-26 19:27:47 (GMT) |
commit | 21d900f1d68fe4668388634408e84a5e610baa16 (patch) | |
tree | fb381cc56d1fe7bd0268f1253217f91e5185cfb2 /Lib | |
parent | 4d542ec13cb863de8d02edbd5824892ba538b3d3 (diff) | |
download | cpython-21d900f1d68fe4668388634408e84a5e610baa16.zip cpython-21d900f1d68fe4668388634408e84a5e610baa16.tar.gz cpython-21d900f1d68fe4668388634408e84a5e610baa16.tar.bz2 |
Bug #1603321: make pstats.Stats accept Unicode file paths.
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() |