Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/celery/celery
/ setuid
Function
setuid
celery/platforms.py:523–525 ·
view source on GitHub ↗
Version of :func:`os.setuid` supporting usernames.
(uid)
Source
from the content-addressed store, hash-verified
521
522
523
def
setuid(uid):
524
""
"Version of :func:`os.setuid` supporting usernames."
""
525
os.setuid(parse_uid(uid))
526
527
528
def
maybe_drop_privileges(uid=None, gid=None):
Callers
2
test_setuid
Method · 0.90
_setuid
Function · 0.85
Calls
1
parse_uid
Function · 0.85
Tested by
1
test_setuid
Method · 0.72