Staging
v0.5.0
https://github.com/python/cpython
Raw File
Tip revision: d30796dd2ab4ae13679f2a8ef0b60c52bd10ce79 authored by cvs2svn on 09 April 2002, 09:29:28 UTC
This commit was manufactured by cvs2svn to create tag 'r221'.
Tip revision: d30796d
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