"""Interfaces for launching and remotely controlling Web browsers."""
# Maintained by Georg Brandl.
+import io
import os
import shlex
import sys
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
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