commit | 3b34dd871a3d17aa382d4ca22488671afe0c4c03 | [log] [tgz] |
---|---|---|
author | Tarek Ziadé <ziade.tarek@gmail.com> | Sat Oct 03 14:52:33 2009 +0000 |
committer | Tarek Ziadé <ziade.tarek@gmail.com> | Sat Oct 03 14:52:33 2009 +0000 |
tree | 86ac2cfbf0eda27dd5a8803cc7542881b4f495b7 | |
parent | 530df33eac1307dffadf729a828bea72c32e6031 [diff] [blame] |
now uses the right exception type
diff --git a/Lib/distutils/archive_util.py b/Lib/distutils/archive_util.py index 4ace7bd..bc5edfd 100644 --- a/Lib/distutils/archive_util.py +++ b/Lib/distutils/archive_util.py
@@ -16,12 +16,12 @@ try: from pwd import getpwnam -except AttributeError: +except ImportError: getpwnam = None try: from grp import getgrnam -except AttributeError: +except ImportError: getgrnam = None def _get_gid(name):