~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/hooks.py

  • Committer: Robert Collins
  • Date: 2007-06-28 06:32:03 UTC
  • mto: This revision was merged to the branch mainline in revision 2560.
  • Revision ID: robertc@robertcollins.net-20070628063203-lr39jqb65223ts09
Increase docs in response to review feedback.

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
        """Get the name for a_callable for UI display.
40
40
 
41
41
        If no name has been registered, the string 'No hook name' is returned.
 
42
        We use a fixed string rather than repr or the callables module because
 
43
        the code names are rarely meaningful for end users and this is not 
 
44
        intended for debugging.
42
45
        """
43
46
        return self._callable_names.get(a_callable, "No hook name")
44
47