From: <pj...@us...> - 2009-01-01 00:35:31
|
Revision: 5826 http://jython.svn.sourceforge.net/jython/?rev=5826&view=rev Author: pjenvey Date: 2009-01-01 00:35:27 +0000 (Thu, 01 Jan 2009) Log Message: ----------- add umask Modified Paths: -------------- trunk/jython/Lib/os.py Modified: trunk/jython/Lib/os.py =================================================================== --- trunk/jython/Lib/os.py 2009-01-01 00:20:37 UTC (rev 5825) +++ trunk/jython/Lib/os.py 2009-01-01 00:35:27 UTC (rev 5826) @@ -1068,7 +1068,13 @@ return fileno.isatty() +def umask(new_mask): + """umask(new_mask) -> old_mask + Set the current numeric umask and return the previous umask.""" + return _posix.umask(int(new_mask)) + + from java.security import SecureRandom urandom_source = None This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |