home *** CD-ROM | disk | FTP | other *** search
/ PC World 2002 May / PCWorld_2002-05_cd.bin / Software / TemaCD / activepython / ActivePython-2.1.1.msi / Python21_Lib_TERMIOS.py < prev    next >
Encoding:
Python Source  |  2001-07-26  |  430 b   |  15 lines

  1. """Backward-compatibility version of TERMIOS; export constants exported by
  2. termios, and issue a deprecation warning.
  3. """
  4.  
  5. import warnings
  6. warnings.warn("the TERMIOS module is deprecated; please use termios",
  7.               DeprecationWarning)
  8.  
  9.  
  10. # Export the constants known to the termios module:
  11. from termios import *
  12.  
  13. # and *only* the constants:
  14. __all__ = [s for s in dir() if s[0] in "ABCDEFGHIJKLMNOPQRSTUVWXYZ"]
  15.