Kaydet (Commit) 100fcd0a authored tarafından Raymond Hettinger's avatar Raymond Hettinger

Backport 1.28 and 1.29:

SF #515026, delete global variable that was apparently used only
in a for loop.
üst 452fc854
......@@ -322,6 +322,8 @@ 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())
or x.find("%s") > -1, _tryorder)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment