diff options
author | Georg Brandl <georg@python.org> | 2007-07-01 08:11:40 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2007-07-01 08:11:40 +0000 |
commit | 511087b035aea0c4942942a50397bf69726f8c03 (patch) | |
tree | 37fc00fdb006214fcefbde06002ad181ef347266 | |
parent | 1d1e950289f7260774ac5aea67268f84161d413c (diff) | |
download | cpython-git-511087b035aea0c4942942a50397bf69726f8c03.tar.gz |
Fix a few webbrowser.py problems.
(backport from rev. 56137)
-rw-r--r-- | Lib/webbrowser.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index b71ef8d7d3..1e12a3ee2c 100644 --- a/Lib/webbrowser.py +++ b/Lib/webbrowser.py @@ -1,5 +1,6 @@ #! /usr/bin/env python """Interfaces for launching and remotely controlling Web browsers.""" +# Maintained by Georg Brandl. import os import shlex @@ -160,6 +161,7 @@ class GenericBrowser(BaseBrowser): def __init__(self, name): if isinstance(name, basestring): self.name = name + self.args = ["%s"] else: # name should be a list with arguments self.name = name[0] @@ -452,7 +454,7 @@ def register_X_browsers(): # if successful, register it if retncode is None and commd: - register("gnome", None, BackgroundBrowser(commd.split())) + register("gnome", None, BackgroundBrowser(shlex.split(commd))) # First, the Mozilla/Netscape browsers for browser in ("mozilla-firefox", "firefox", |