mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
parent
56b04352f8
commit
06afed07d1
1 changed files with 2 additions and 2 deletions
|
@ -20,12 +20,12 @@ from distutils import log
|
|||
|
||||
try:
|
||||
from pwd import getpwnam
|
||||
except AttributeError:
|
||||
except (ImportError, AttributeError):
|
||||
getpwnam = None
|
||||
|
||||
try:
|
||||
from grp import getgrnam
|
||||
except AttributeError:
|
||||
except (ImportError, AttributeError):
|
||||
getgrnam = None
|
||||
|
||||
def _get_gid(name):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue