Staging
v0.8.1
https://github.com/python/cpython
Revision dba657f2d763eade23a40d582d251dfc640a8ebe authored by Jack Jansen on 22 March 2002, 15:48:44 UTC, committed by Jack Jansen on 22 March 2002, 15:48:44 UTC
Generate with weaklink stubs, so missing routines (on MacOS 8.6 and earlier)
don't cause import failure.

Fixes 531398, 2.2.1 candidate.
1 parent d963214
Raw File
Tip revision: dba657f2d763eade23a40d582d251dfc640a8ebe authored by Jack Jansen on 22 March 2002, 15:48:44 UTC
Backport of _Resmodule.c 1.10 and ressupport.py 1.21:
Tip revision: dba657f
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