summaryrefslogtreecommitdiffstats
path: root/Lib/FCNTL.py
blob: a31a7f8e989bbad9207fcd4595bcae7d71af7ce0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""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"]