Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
118
class
Sig(object):
119
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