annotate Lib/TERMIOS.py @ 25838:8540887bcec6 2.2

Backport of 2.183: Fix memory leak in add_subclass() found by NealN with valgrind.
author Guido van Rossum <guido@python.org>
date Fri, 18 Oct 2002 13:42:21 +0000
parents 8bf0c49fce10
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16808
ae7d7207da48 Replace all the platform-specific TERMIOS modules with a portable version
Fred Drake <fdrake@acm.org>
parents:
diff changeset
1 """Backward-compatibility version of TERMIOS; export constants exported by
ae7d7207da48 Replace all the platform-specific TERMIOS modules with a portable version
Fred Drake <fdrake@acm.org>
parents:
diff changeset
2 termios, and issue a deprecation warning.
ae7d7207da48 Replace all the platform-specific TERMIOS modules with a portable version
Fred Drake <fdrake@acm.org>
parents:
diff changeset
3 """
ae7d7207da48 Replace all the platform-specific TERMIOS modules with a portable version
Fred Drake <fdrake@acm.org>
parents:
diff changeset
4
ae7d7207da48 Replace all the platform-specific TERMIOS modules with a portable version
Fred Drake <fdrake@acm.org>
parents:
diff changeset
5 import warnings
ae7d7207da48 Replace all the platform-specific TERMIOS modules with a portable version
Fred Drake <fdrake@acm.org>
parents:
diff changeset
6 warnings.warn("the TERMIOS module is deprecated; please use termios",
ae7d7207da48 Replace all the platform-specific TERMIOS modules with a portable version
Fred Drake <fdrake@acm.org>
parents:
diff changeset
7 DeprecationWarning)
ae7d7207da48 Replace all the platform-specific TERMIOS modules with a portable version
Fred Drake <fdrake@acm.org>
parents:
diff changeset
8
ae7d7207da48 Replace all the platform-specific TERMIOS modules with a portable version
Fred Drake <fdrake@acm.org>
parents:
diff changeset
9
ae7d7207da48 Replace all the platform-specific TERMIOS modules with a portable version
Fred Drake <fdrake@acm.org>
parents:
diff changeset
10 # Export the constants known to the termios module:
ae7d7207da48 Replace all the platform-specific TERMIOS modules with a portable version
Fred Drake <fdrake@acm.org>
parents:
diff changeset
11 from termios import *
ae7d7207da48 Replace all the platform-specific TERMIOS modules with a portable version
Fred Drake <fdrake@acm.org>
parents:
diff changeset
12
ae7d7207da48 Replace all the platform-specific TERMIOS modules with a portable version
Fred Drake <fdrake@acm.org>
parents:
diff changeset
13 # and *only* the constants:
ae7d7207da48 Replace all the platform-specific TERMIOS modules with a portable version
Fred Drake <fdrake@acm.org>
parents:
diff changeset
14 __all__ = [s for s in dir() if s[0] in "ABCDEFGHIJKLMNOPQRSTUVWXYZ"]