mirror of
https://github.com/python/cpython.git
synced 2024-11-24 18:34:43 +08:00
15 lines
416 B
Python
15 lines
416 B
Python
|
"""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)
|
||
|
|
||
|
|
||
|
# 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"]
|