summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2013-11-15 22:08:21 (GMT)
committerChristian Heimes <christian@cheimes.de>2013-11-15 22:08:21 (GMT)
commit06afed07d1db19161a93a79803023792371392f7 (patch)
tree9885b6fb72ac53e08ecd973420e85958b796dedb
parent56b04352f8d1ef4a3c625b52a92ad1bae99ed022 (diff)
downloadcpython-06afed07d1db19161a93a79803023792371392f7.zip
cpython-06afed07d1db19161a93a79803023792371392f7.tar.gz
cpython-06afed07d1db19161a93a79803023792371392f7.tar.bz2
Issue #19544 and Issue #6516: quick workaround for failing builds
-rw-r--r--Lib/distutils/archive_util.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/archive_util.py b/Lib/distutils/archive_util.py
index 306ef6a..82046a8 100644
--- a/Lib/distutils/archive_util.py
+++ b/Lib/distutils/archive_util.py
@@ -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):