Staging
v0.5.1
https://github.com/python/cpython
Revision ae7bc1348237a9120bc896e17c2e3461728ecb9c authored by Barry Warsaw on 22 May 2003, 19:13:35 UTC, committed by Barry Warsaw on 22 May 2003, 19:13:35 UTC
1 parent f828b41
Raw File
Tip revision: ae7bc1348237a9120bc896e17c2e3461728ecb9c authored by Barry Warsaw on 22 May 2003, 19:13:35 UTC
Go ahead and label this 2.2.3c1
Tip revision: ae7bc13
FCNTL.py
"""Backward-compatibility version of FCNTL; export constants exported by
fcntl, and issue a deprecation warning.
"""

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


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

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