@contextlib.contextmanager
    def temp_umask(umask):
        oldmask = os.umask(umask)
        try:
            yield
        finally:
            os.umask(oldmask)
Context manager that temporarily sets the process umask.
dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/future/backports/test/support.py/temp_umask