Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
f6fc4540
Commit
f6fc4540
authored
Aug 29, 2006
by
Marc-André Lemburg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a buglet in the error reporting (SF bug report #1546372).
This should probably go into Python 2.5 or 2.5.1 as well.
parent
d219e7f9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
Tools/pybench/pybench.py
Tools/pybench/pybench.py
+7
-2
No files found.
Tools/pybench/pybench.py
View file @
f6fc4540
...
...
@@ -885,7 +885,7 @@ python pybench.py -s p25.pybench -c p21.pybench
else
:
bench
.
print_benchmark
(
hidenoise
=
hidenoise
,
limitnames
=
limitnames
)
except
IOError
:
except
IOError
,
reason
:
print
'* Error opening/reading file %s: %s'
%
(
repr
(
show_bench
),
reason
)
...
...
@@ -931,8 +931,13 @@ python pybench.py -s p25.pybench -c p21.pybench
bench
.
name
=
reportfile
pickle
.
dump
(
bench
,
f
)
f
.
close
()
except
IOError
:
except
IOError
,
reason
:
print
'* Error opening/writing reportfile'
except
IOError
,
reason
:
print
'* Error opening/writing reportfile %s: %s'
%
(
reportfile
,
reason
)
print
if
__name__
==
'__main__'
:
PyBenchCmdline
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment