Staging
v0.5.1
https://github.com/python/cpython
Revision 309279e17efd072cc7a60c7e7b17b545b6b79c9d authored by Martin v. Löwis on 19 July 2004, 16:33:27 UTC, committed by Martin v. Löwis on 19 July 2004, 16:33:27 UTC
1 parent 3c094a8
Raw File
Tip revision: 309279e17efd072cc7a60c7e7b17b545b6b79c9d authored by Martin v. Löwis on 19 July 2004, 16:33:27 UTC
Patch #993187: Make rstrip doc similar to lstrip.
Tip revision: 309279e
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