Staging
v0.5.1
Revision 62460bb376fda652834e27d7b8e13ca9a1733a1f authored by cvs2svn on 24 September 2003, 00:51:10 UTC, committed by cvs2svn on 24 September 2003, 00:51:10 UTC
1 parent fb6095a
Raw File
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