Kaydet (Commit) 76d61399 authored tarafından Fred Drake's avatar Fred Drake

Add a new FCNTL.py backward compatibility module that issues a deprecation

warning.  This is similar to the TERMIOS backward compatbility module.
üst bc7809b5
"""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"]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment