summaryrefslogtreecommitdiffstats
path: root/Lib/pty.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2004-08-02 03:55:18 (GMT)
committerTim Peters <tim.peters@gmail.com>2004-08-02 03:55:18 (GMT)
commitd464838ebcf68659617a62abf5e0d04a5425ddfc (patch)
tree50c3c96f8c6a1b90500e371f1e40d382186e59ca /Lib/pty.py
parent1cd701732fe324adace84a955d48a3dc7753ee59 (diff)
downloadcpython-d464838ebcf68659617a62abf5e0d04a5425ddfc.zip
cpython-d464838ebcf68659617a62abf5e0d04a5425ddfc.tar.gz
cpython-d464838ebcf68659617a62abf5e0d04a5425ddfc.tar.bz2
Removed no-longer-needed convolutions to recover from damaged modules
getting left beyind in sys.modules.
Diffstat (limited to 'Lib/pty.py')
-rw-r--r--Lib/pty.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/Lib/pty.py b/Lib/pty.py
index cafbc9c..fae162d 100644
--- a/Lib/pty.py
+++ b/Lib/pty.py
@@ -8,17 +8,6 @@
from select import select
import os
-
-# Absurd: import termios and then delete it. This is to force an attempt
-# to import pty to raise an ImportError on platforms that lack termios.
-# Without this explicit import of termios here, some other module may
-# import tty first, which in turn imports termios and dies with an
-# ImportError then. But since tty *does* exist across platforms, that
-# leaves a damaged module object for tty in sys.modules, and the import
-# of tty here then appears to work despite that the tty imported is junk.
-import termios
-del termios
-
import tty
__all__ = ["openpty","fork","spawn"]