summaryrefslogtreecommitdiff
path: root/Lib/webbrowser.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/webbrowser.py')
-rw-r--r--Lib/webbrowser.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py
index 67b086ed3a..19443ca1e5 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()))
+cmd = None # to make del work if _tryorder was empty
del cmd
_tryorder = filter(lambda x: _browsers.has_key(x.lower())