summaryrefslogtreecommitdiffstats
path: root/Lib/webbrowser.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-02-09 20:06:00 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-02-09 20:06:00 (GMT)
commit658cba6706eb4a2ad8b3e235cf0db9fe1c8e9e6b (patch)
tree059882637147ef0acaf1a61141d076d2b05d5166 /Lib/webbrowser.py
parent3c61c3525f4cf23acae95c5229abd10fe0998d28 (diff)
downloadcpython-658cba6706eb4a2ad8b3e235cf0db9fe1c8e9e6b.zip
cpython-658cba6706eb4a2ad8b3e235cf0db9fe1c8e9e6b.tar.gz
cpython-658cba6706eb4a2ad8b3e235cf0db9fe1c8e9e6b.tar.bz2
Whitespace normalization.
Diffstat (limited to 'Lib/webbrowser.py')
-rw-r--r--Lib/webbrowser.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py
index 0ad20d3..59825fa 100644
--- a/Lib/webbrowser.py
+++ b/Lib/webbrowser.py
@@ -6,8 +6,8 @@ import sys
class Error(Exception):
pass
-_browsers = {} # Dictionary of available browser controllers
-_tryorder = [] # Preference order of available browsers
+_browsers = {} # Dictionary of available browser controllers
+_tryorder = [] # Preference order of available browsers
def register(name, klass, instance=None):
"""Register a browser connector and, optionally, connection."""
@@ -24,7 +24,7 @@ def get(using=None):
# User gave us a command line, don't mess with it.
return browser
else:
- # User gave us a browser name.
+ # User gave us a browser name.
command = _browsers[browser.lower()]
if command[1] is None:
return command[0]()
@@ -37,7 +37,7 @@ def get(using=None):
def open(url, new=0, autoraise=1):
get().open(url, new, autoraise)
-def open_new(url): # Marked deprecated. May be removed in 2.1.
+def open_new(url): # Marked deprecated. May be removed in 2.1.
get().open(url, 1)
#
@@ -47,7 +47,7 @@ def open_new(url): # Marked deprecated. May be removed in 2.1.
# support the user's platform.
#
-#
+#
# Platform support for Unix
#
@@ -78,7 +78,7 @@ if os.environ.get("TERM") or os.environ.get("DISPLAY"):
def open(self, url, new=0, autoraise=1):
os.system(self.command % url)
- def open_new(self, url): # Deprecated. May be removed in 2.1.
+ def open_new(self, url): # Deprecated. May be removed in 2.1.
self.open(url)
# Easy cases first -- register console browsers if we have them.