Staging
v0.8.1
Revision 6d3a0d2dffe06c1b4f0f445f3289da4c2a328355 authored by Andrew M. Kuchling on 29 June 2004, 13:52:14 UTC, committed by Andrew M. Kuchling on 29 June 2004, 13:52:14 UTC
(I ran this through texcheck, but don't have LaTeX installed on this machine and therefore haven't
verified that the changes are accepted by LaTeX.)
1 parent 7dd8fda
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