home *** CD-ROM | disk | FTP | other *** search
/ PC Welt 2005 March / PCWELT_3_2005.ISO / pcwsoft / framework-2.2.exe / FCNTL.py < prev    next >
Encoding:
Python Source  |  2003-12-30  |  404 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.