home *** CD-ROM | disk | FTP | other *** search
/ Freelog 33 / Freelog033.iso / Progr / Python-2.2.1.exe / FCNTL.PY < prev    next >
Encoding:
Python Source  |  2001-05-09  |  418 b   |  15 lines

  1. """Backward-compatibility version of FCNTL; export constants exported by
  2. fcntl, and issue a deprecation warning.
  3. """
  4.  
  5. import warnings
  6. warnings.warn("the FCNTL module is deprecated; please use fcntl",
  7.               DeprecationWarning)
  8.  
  9.  
  10. # Export the constants known to the fcntl module:
  11. from fcntl import *
  12.  
  13. # and *only* the constants:
  14. __all__ = [s for s in dir() if s[0] in "ABCDEFGHIJKLMNOPQRSTUVWXYZ"]
  15.