summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2002-02-11 18:11:09 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2002-02-11 18:11:09 (GMT)
commitf963b45dfd211a745658819815dfe7bc67697452 (patch)
tree711ee0d3f07fe35b316c6cfe5491d34570f40acf
parentbc9bc187aa9e2b18a2e3d49aa743e37cdaa1bb18 (diff)
downloadcpython-f963b45dfd211a745658819815dfe7bc67697452.zip
cpython-f963b45dfd211a745658819815dfe7bc67697452.tar.gz
cpython-f963b45dfd211a745658819815dfe7bc67697452.tar.bz2
SF #515026, delete global variable that was apparently used only
in a for loop.
-rw-r--r--Lib/webbrowser.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py
index 58ed28a..67b086e 100644
--- a/Lib/webbrowser.py
+++ b/Lib/webbrowser.py
@@ -322,6 +322,7 @@ for cmd in _tryorder:
if _iscommand(cmd.lower()):
register(cmd.lower(), None, GenericBrowser(
"%s '%%s'" % cmd.lower()))
+del cmd
_tryorder = filter(lambda x: _browsers.has_key(x.lower())
or x.find("%s") > -1, _tryorder)