[Python-checkins] python/dist/src/Lib pty.py,1.16,1.17
tim_one at users.sourceforge.net
tim_one at users.sourceforge.net
Mon Aug 2 05:55:20 CEST 2004
Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23472/Lib
Modified Files:
pty.py
Log Message:
Removed no-longer-needed convolutions to recover from damaged modules
getting left beyind in sys.modules.
Index: pty.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/pty.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -d -r1.16 -r1.17
*** pty.py 5 Jun 2004 16:27:16 -0000 1.16
--- pty.py 2 Aug 2004 03:55:18 -0000 1.17
***************
*** 9,23 ****
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
--- 9,12 ----
More information about the Python-checkins
mailing list