MCPcopy Index your code
hub / github.com/python/cpython / _get_uid

Function _get_uid

Lib/shutil.py:974–990  ·  view source on GitHub ↗

Returns an uid, given a user name.

(name)

Source from the content-addressed store, hash-verified

972 return None
973
974def _get_uid(name):
975 """Returns an uid, given a user name."""
976 if name is None:
977 return None
978
979 try:
980 from pwd import getpwnam
981 except ImportError:
982 return None
983
984 try:
985 result = getpwnam(name)
986 except KeyError:
987 result = None
988 if result is not None:
989 return result[2]
990 return None
991
992def _make_tarball(base_name, base_dir, compress="gzip", verbose=0, dry_run=0,
993 owner=None, group=None, logger=None, root_dir=None):

Callers 2

_make_tarballFunction · 0.85
chownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…