[Python-checkins] CVS: python/dist/src/Lib FCNTL.py,NONE,1.1
Fred L. Drake
fdrake@users.sourceforge.net
Wed, 09 May 2001 14:13:25 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv25827
Added Files:
FCNTL.py
Log Message:
Add a new FCNTL.py backward compatibility module that issues a deprecation
warning. This is similar to the TERMIOS backward compatbility module.
--- NEW 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"]