comparison mercurial/hook.py @ 7278:810ca383da9c

remove unused variables
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Tue, 28 Oct 2008 19:25:26 +0100 (2008-10-28)
parents f67d1468ac50
children 196b05a548d0
comparison
equal deleted inserted replaced
7277:1f0f84660dea 7278:810ca383da9c
37 '(import of "%s" failed)') % 37 '(import of "%s" failed)') %
38 (hname, modname)) 38 (hname, modname))
39 try: 39 try:
40 for p in funcname.split('.')[1:]: 40 for p in funcname.split('.')[1:]:
41 obj = getattr(obj, p) 41 obj = getattr(obj, p)
42 except AttributeError, err: 42 except AttributeError:
43 raise util.Abort(_('%s hook is invalid ' 43 raise util.Abort(_('%s hook is invalid '
44 '("%s" is not defined)') % 44 '("%s" is not defined)') %
45 (hname, funcname)) 45 (hname, funcname))
46 if not callable(obj): 46 if not callable(obj):
47 raise util.Abort(_('%s hook is invalid ' 47 raise util.Abort(_('%s hook is invalid '