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

Function _can_security_check

Lib/netrc.py:10–12  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9
10def _can_security_check():
11 # On WASI, getuid() is indicated as a stub but it may also be missing.
12 return os.name == 'posix' and hasattr(os, 'getuid')
13
14
15def _getpwuid(uid):

Callers 1

_security_checkMethod · 0.85

Calls 1

hasattrFunction · 0.85

Tested by

no test coverage detected