Commit b6ef08d1 authored by Georg Brandl's avatar Georg Brandl

Fix a few webbrowser.py problems.

parent af10e2c0
#! /usr/bin/env python #! /usr/bin/env python
"""Interfaces for launching and remotely controlling Web browsers.""" """Interfaces for launching and remotely controlling Web browsers."""
# Maintained by Georg Brandl.
import os import os
import shlex import shlex
...@@ -160,6 +161,7 @@ class GenericBrowser(BaseBrowser): ...@@ -160,6 +161,7 @@ class GenericBrowser(BaseBrowser):
def __init__(self, name): def __init__(self, name):
if isinstance(name, basestring): if isinstance(name, basestring):
self.name = name self.name = name
self.args = ["%s"]
else: else:
# name should be a list with arguments # name should be a list with arguments
self.name = name[0] self.name = name[0]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment