summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2008-12-10 06:02:39 (GMT)
committerFred Drake <fdrake@acm.org>2008-12-10 06:02:39 (GMT)
commitee763951dc56d4cdf0d39a12214bc1342fc3d93a (patch)
tree58d55f809c10ab989e10964fb18fc2d1a34251be /Lib
parentacc68cc2b3e167ccc992be2ad616a5de0a04ac6e (diff)
downloadcpython-ee763951dc56d4cdf0d39a12214bc1342fc3d93a.zip
cpython-ee763951dc56d4cdf0d39a12214bc1342fc3d93a.tar.gz
cpython-ee763951dc56d4cdf0d39a12214bc1342fc3d93a.tar.bz2
simplify imports
Diffstat (limited to 'Lib')
-rw-r--r--Lib/webbrowser.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py
index 39f9b99..fb227fe 100644
--- a/Lib/webbrowser.py
+++ b/Lib/webbrowser.py
@@ -2,6 +2,7 @@
"""Interfaces for launching and remotely controlling Web browsers."""
# Maintained by Georg Brandl.
+import io
import os
import shlex
import sys
@@ -223,7 +224,6 @@ class UnixBrowser(BaseBrowser):
cmdline = [self.name] + raise_opt + args
if remote or self.background:
- import io
inout = io.open(os.devnull, "r+")
else:
# for TTY browsers, we need stdin/out
@@ -348,7 +348,6 @@ class Konqueror(BaseBrowser):
else:
action = "openURL"
- import io
devnull = io.open(os.devnull, "r+")
# if possible, put browser in separate process group, so
# keyboard interrupts don't affect browser as well as Python