]> granicus.if.org Git - python/commitdiff
Fixes a fatal bug when the module has computed alternatives containing %s.
authorEric S. Raymond <esr@thyrsus.com>
Sat, 31 Mar 2001 01:50:52 +0000 (01:50 +0000)
committerEric S. Raymond <esr@thyrsus.com>
Sat, 31 Mar 2001 01:50:52 +0000 (01:50 +0000)
Lib/webbrowser.py

index ebafd80ba00699c24d475f36cccd5ee6c2c90900..d882e7f230ea77fc2bd56d6f15081b7a5e54153e 100644 (file)
@@ -24,7 +24,7 @@ def get(using=None):
     for browser in alternatives:
         if browser.find('%s') > -1:
             # User gave us a command line, don't mess with it.
-            return browser
+            return GenericBrowser(browser)
         else:
             # User gave us a browser name.
             command = _browsers[browser.lower()]