diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-11-15 22:13:17 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-11-15 22:13:17 (GMT) |
commit | aa32779632270a8286e65f02fcbae2a08419d23a (patch) | |
tree | d0e0b615e15cb9ac3c989437675764309f1b4527 /Lib/distutils/archive_util.py | |
parent | 06afed07d1db19161a93a79803023792371392f7 (diff) | |
download | cpython-aa32779632270a8286e65f02fcbae2a08419d23a.zip cpython-aa32779632270a8286e65f02fcbae2a08419d23a.tar.gz cpython-aa32779632270a8286e65f02fcbae2a08419d23a.tar.bz2 |
Issue #19544, #6516: no need to catch AttributeError on import pwd/grp
Diffstat (limited to 'Lib/distutils/archive_util.py')
-rw-r--r-- | Lib/distutils/archive_util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/archive_util.py b/Lib/distutils/archive_util.py index 82046a8..4470bb0 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 (ImportError, AttributeError): +except ImportError: getpwnam = None try: from grp import getgrnam -except (ImportError, AttributeError): +except ImportError: getgrnam = None def _get_gid(name): |