~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/hooks.py

  • Committer: Jelmer Vernooij
  • Date: 2011-03-30 13:03:08 UTC
  • mto: This revision was merged to the branch mainline in revision 5747.
  • Revision ID: jelmer@samba.org-20110330130308-ff2a1e6gfwey7mou
Catch deprecation warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
148
148
                              deprecated=deprecated, callbacks=callbacks)
149
149
        self[name] = hookpoint
150
150
 
151
 
    @symbol_versioning.deprecated_function(symbol_versioning.deprecated_in((2, 4)))
 
151
    @symbol_versioning.deprecated_method(symbol_versioning.deprecated_in((2, 4)))
152
152
    def create_hook(self, hook):
153
153
        """Create a hook which can have callbacks registered for it.
154
154