summaryrefslogtreecommitdiffstats
path: root/Lib/TERMIOS.py
blob: 0b96e554b3cc091d49c8f4fc055dac320dfd98c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""Backward-compatibility version of TERMIOS; export constants exported by
termios, and issue a deprecation warning.
"""

import warnings
warnings.warn("the TERMIOS module is deprecated; please use termios",
              DeprecationWarning)

# Ignore further deprecation warnings about this module
warnings.filterwarnings("ignore", "", DeprecationWarning, __name__)


# Export the constants known to the termios module:
from termios import *

# and *only* the constants:
__all__ = [s for s in dir() if s[0] in "ABCDEFGHIJKLMNOPQRSTUVWXYZ"]