]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix bug #687747 and patch #1077979 in webbrowser.py.
authorGeorg Brandl <georg@python.org>
Thu, 15 Sep 2005 07:29:38 +0000 (07:29 +0000)
committerGeorg Brandl <georg@python.org>
Thu, 15 Sep 2005 07:29:38 +0000 (07:29 +0000)
Lib/webbrowser.py

index 4750fe25cd275deea944123845a7c90fd2905b07..af887093b278b8234e833fff3c11d1d54f416064 100644 (file)
@@ -127,7 +127,7 @@ class Netscape:
 
     def open(self, url, new=0, autoraise=1):
         if new:
-            self._remote("openURL(%s, new-window)"%url, autoraise)
+            self._remote("openURL(%s,new-window)"%url, autoraise)
         else:
             self._remote("openURL(%s)" % url, autoraise)
 
@@ -355,7 +355,7 @@ if sys.platform[:3] == "os2" and _iscommand("netscape.exe"):
 if "BROWSER" in os.environ:
     # It's the user's responsibility to register handlers for any unknown
     # browser referenced by this value, before calling open().
-    _tryorder = os.environ["BROWSER"].split(os.pathsep)
+    _tryorder[0:0] = os.environ["BROWSER"].split(os.pathsep)
 
 for cmd in _tryorder:
     if not cmd.lower() in _browsers: