summaryrefslogtreecommitdiffstats
path: root/Lib/pstats.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2006-11-26 19:27:47 (GMT)
committerGeorg Brandl <georg@python.org>2006-11-26 19:27:47 (GMT)
commit21d900f1d68fe4668388634408e84a5e610baa16 (patch)
treefb381cc56d1fe7bd0268f1253217f91e5185cfb2 /Lib/pstats.py
parent4d542ec13cb863de8d02edbd5824892ba538b3d3 (diff)
downloadcpython-21d900f1d68fe4668388634408e84a5e610baa16.zip
cpython-21d900f1d68fe4668388634408e84a5e610baa16.tar.gz
cpython-21d900f1d68fe4668388634408e84a5e610baa16.tar.bz2
Bug #1603321: make pstats.Stats accept Unicode file paths.
Diffstat (limited to 'Lib/pstats.py')
-rw-r--r--Lib/pstats.py2
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()