We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 50f5a46 commit a48de05Copy full SHA for a48de05
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/PosixModuleBuiltins.java
@@ -1612,4 +1612,17 @@ int getCpuCount() {
1612
return Runtime.getRuntime().availableProcessors();
1613
}
1614
1615
+
1616
+ @Builtin(name = "umask", fixedNumOfPositionalArgs = 1)
1617
+ @GenerateNodeFactory
1618
+ abstract static class UmaskNode extends PythonBuiltinNode {
1619
+ @Specialization
1620
+ int getAndSetUmask(int umask) {
1621
+ if (umask == 0022) {
1622
+ return 0022;
1623
+ } else {
1624
+ throw raise(NotImplementedError, "setting the umask to anything other than the default");
1625
+ }
1626
1627
1628
0 commit comments