Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hook.py @ 7280:810ca383da9c
remove unused variables
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Tue, 28 Oct 2008 19:25:26 +0100 |
parents | f67d1468ac50 |
children | 196b05a548d0 |
line wrap: on
line diff
--- a/mercurial/hook.py Tue Oct 28 19:07:14 2008 +0100 +++ b/mercurial/hook.py Tue Oct 28 19:25:26 2008 +0100 @@ -39,7 +39,7 @@ try: for p in funcname.split('.')[1:]: obj = getattr(obj, p) - except AttributeError, err: + except AttributeError: raise util.Abort(_('%s hook is invalid ' '("%s" is not defined)') % (hname, funcname))