MCPcopy
hub / github.com/certbot/certbot / open

Function open

certbot/src/certbot/compat/os.py:96–99  ·  view source on GitHub ↗

Method os.open() is forbidden

(*unused_args, **unused_kwargs)

Source from the content-addressed store, hash-verified

94# atomically set in case of file creation, or invokes filesystem.chmod to properly set the
95# permissions for the other cases.
96def open(*unused_args, **unused_kwargs): # type: ignore
97 """Method os.open() is forbidden"""
98 raise RuntimeError('Usage of os.open() is forbidden. '
99 'Use certbot.compat.filesystem.open() instead.')
100
101
102# Very similarly to os.open, os.mkdir has the same effects on Windows and creates an unsecured

Callers 15

mainFunction · 0.50
get_mattermost_urlFunction · 0.50
_execute_buildFunction · 0.50
_dump_failed_build_logsFunction · 0.50
test_client_processFunction · 0.50
mainFunction · 0.50
file_contentsFunction · 0.50
setUpMethod · 0.50
__init__Method · 0.50
_start_nginxMethod · 0.50
generate_test_file_hooksFunction · 0.50

Calls

no outgoing calls

Tested by 15

test_client_processFunction · 0.40
mainFunction · 0.40
setUpMethod · 0.40
test_renew_hook_overrideFunction · 0.40
test_renew_hook_env_varsFunction · 0.40
test_reuse_keyFunction · 0.40
private_keyFunction · 0.40