]> granicus.if.org Git - python/commitdiff
add missing import
authorFred Drake <fdrake@acm.org>
Fri, 5 Dec 2008 02:47:42 +0000 (02:47 +0000)
committerFred Drake <fdrake@acm.org>
Fri, 5 Dec 2008 02:47:42 +0000 (02:47 +0000)
Lib/webbrowser.py

index 18dc11b191bdb73c2a54a2929bf4c40465d9a1b8..39f9b99390c4ce5b5578713e3a389918ca6dfb8b 100644 (file)
@@ -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