Staging
v0.8.1
https://github.com/python/cpython
Revision f7cc0bf0ac2dfaa6d6edb868ac9eb2aebdf8821f authored by Martin v. Löwis on 01 December 2003, 21:04:02 UTC, committed by Martin v. Löwis on 01 December 2003, 21:04:02 UTC
1 parent f69a0b9
Raw File
Tip revision: f7cc0bf0ac2dfaa6d6edb868ac9eb2aebdf8821f authored by Martin v. Löwis on 01 December 2003, 21:04:02 UTC
Convert path objects to strings in askdirectory. Fixes #852314.
Tip revision: f7cc0bf
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