MCPcopy Index your code
hub / github.com/python/cpython / create_readonly_file

Method create_readonly_file

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

Source from the content-addressed store, hash-verified

133 return file_path
134
135 def create_readonly_file(self, filename):
136 os.chmod(self.create_writable_file(filename), stat.S_IREAD)
137
138class Sig(object):
139

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