Mercurial > public > mercurial-scm > hg-stable
diff contrib/setup3k.py @ 16688:cfb6682961b8
cleanup: replace naked excepts with more specific ones
author | Brodie Rao <brodie@sf.io> |
---|---|
date | Sat, 12 May 2012 16:02:45 +0200 |
parents | 8df4166b6f63 |
children | f366d4c2ff34 |
line wrap: on
line diff
--- a/contrib/setup3k.py Sat May 12 16:00:58 2012 +0200 +++ b/contrib/setup3k.py Sat May 12 16:02:45 2012 +0200 @@ -26,22 +26,22 @@ try: import hashlib sha = hashlib.sha1() -except: +except ImportError: try: import sha - except: + except ImportError: raise SystemExit( "Couldn't import standard hashlib (incomplete Python install).") try: import zlib -except: +except ImportError: raise SystemExit( "Couldn't import standard zlib (incomplete Python install).") try: import bz2 -except: +except ImportError: raise SystemExit( "Couldn't import standard bz2 (incomplete Python install).")