mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fix a few webbrowser.py problems.
This commit is contained in:
parent
6eed49f919
commit
ee250301b7
1 changed files with 2 additions and 0 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue