mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
If no webbrowsers were found _tryorder would be empty, cmd would never be set and the "del cmd" would fail. Fixed.
2.2.1 candidate.
This commit is contained in:
parent
0c160a08f2
commit
ff0a7b8ca2
1 changed files with 1 additions and 0 deletions
|
@ -322,6 +322,7 @@ for cmd in _tryorder:
|
|||
if _iscommand(cmd.lower()):
|
||||
register(cmd.lower(), None, GenericBrowser(
|
||||
"%s '%%s'" % cmd.lower()))
|
||||
cmd = None # to make del work if _tryorder was empty
|
||||
del cmd
|
||||
|
||||
_tryorder = filter(lambda x: _browsers.has_key(x.lower())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue