From ee763951dc56d4cdf0d39a12214bc1342fc3d93a Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Wed, 10 Dec 2008 06:02:39 +0000 Subject: [PATCH] simplify imports --- Lib/webbrowser.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index 39f9b99390c..fb227fec8d0 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 @@ def _invoke(self, args, remote, autoraise): 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 @@ def open(self, url, new=0, autoraise=1): 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