From 608d574828b6bfdf21eff0f5401ab044cd628dec Mon Sep 17 00:00:00 2001 From: Fred Drake Date: Fri, 5 Dec 2008 02:47:42 +0000 Subject: [PATCH] add missing import --- Lib/webbrowser.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Lib/webbrowser.py b/Lib/webbrowser.py index 18dc11b191b..39f9b99390c 100644 --- a/Lib/webbrowser.py +++ b/Lib/webbrowser.py @@ -223,6 +223,7 @@ 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