This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: pybench.py error reporting broken for bad -s filename
Type: Stage:
Components: Demos and Tools Versions:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: lemburg Nosy List: ldeller, lemburg
Priority: normal Keywords: patch

Created on 2006-08-25 01:19 by ldeller, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
pybench.patch ldeller, 2006-08-25 01:19 Patch to fix error reporting when filename specified by -s is missing
Messages (2)
msg50995 - (view) Author: lplatypus (ldeller) * Date: 2006-08-25 01:19
Traceback (most recent call last):
  File
"/usr/local/src/Python-2.5c1/Tools/pybench/pybench.py",
line 938, in ?
    PyBenchCmdline()
  File
"/usr/local/src/Python-2.5c1/Tools/pybench/CommandLine.py",
line 346, in __init__
    rc = self.main()
  File
"/usr/local/src/Python-2.5c1/Tools/pybench/pybench.py",
line 889, in main
    print '* Error opening/reading file %s: %s' % (
UnboundLocalError: local variable 'reason' referenced
before assignment
msg50996 - (view) Author: Marc-Andre Lemburg (lemburg) * (Python committer) Date: 2006-08-29 10:35
Logged In: YES 
user_id=38388

Fixed in revision 51647 on the trunk.

Should probably also go into Python 2.5 or 2.5.1.
History
Date User Action Args
2022-04-11 14:56:19adminsetgithub: 43896
2006-08-25 01:19:46ldellercreate