https://github.com/python/cpython
Revision dedb2934aa70cd45d3999bc222f1f97575067fe5 authored by cvs2svn on 27 May 2004, 05:59:16 UTC, committed by cvs2svn on 27 May 2004, 05:59:16 UTC
1 parent c481f95
Raw File
Tip revision: dedb2934aa70cd45d3999bc222f1f97575067fe5 authored by cvs2svn on 27 May 2004, 05:59:16 UTC
This commit was manufactured by cvs2svn to create tag 'r234'.
Tip revision: dedb293
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