MCPcopy Index your code
hub / github.com/RustPython/RustPython / create_readonly_file

Method create_readonly_file

Lib/test/test_argparse.py:115–116  ·  view source on GitHub ↗
(self, filename)

Source from the content-addressed store, hash-verified

113 return file_path
114
115 def create_readonly_file(self, filename):
116 os.chmod(self.create_writable_file(filename), stat.S_IREAD)
117
118class Sig(object):
119

Callers 3

setUpMethod · 0.80
setUpMethod · 0.80
setUpMethod · 0.80

Calls 2

create_writable_fileMethod · 0.95
chmodMethod · 0.45

Tested by

no test coverage detected