Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
138
class
Sig(object):
139
Callers
3
setUp
Method · 0.80
setUp
Method · 0.80
setUp
Method · 0.80
Calls
2
create_writable_file
Method · 0.95
chmod
Method · 0.45
Tested by
no test coverage detected