summaryrefslogtreecommitdiffstats
path: root/Lib/pstats.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-01-06 21:38:54 (GMT)
committerGeorg Brandl <georg@python.org>2008-01-06 21:38:54 (GMT)
commit50da60cc5bc82799b3636c18b18f24dd208823ec (patch)
tree899f6749f23d4d8655f9cb827d781531af6bb8ba /Lib/pstats.py
parentd11b68ab0834be4be76fca479cd4426eb45dfaec (diff)
downloadcpython-50da60cc5bc82799b3636c18b18f24dd208823ec.zip
cpython-50da60cc5bc82799b3636c18b18f24dd208823ec.tar.gz
cpython-50da60cc5bc82799b3636c18b18f24dd208823ec.tar.bz2
The final occurrences of exception slicing.
Diffstat (limited to 'Lib/pstats.py')
-rw-r--r--Lib/pstats.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/pstats.py b/Lib/pstats.py
index 4396433..5a2f2d0 100644
--- a/Lib/pstats.py
+++ b/Lib/pstats.py
@@ -617,8 +617,8 @@ if __name__ == '__main__':
if line:
try:
self.stats = Stats(line)
- except IOError as args:
- print(args[1], file=self.stream)
+ except IOError as err:
+ print(err.args[1], file=self.stream)
return
self.prompt = line + "% "
elif len(self.prompt) > 2: