~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/hooks.py

  • Committer: John Arbash Meinel
  • Date: 2011-05-11 11:35:28 UTC
  • mto: This revision was merged to the branch mainline in revision 5851.
  • Revision ID: john@arbash-meinel.com-20110511113528-qepibuwxicjrbb2h
Break compatibility with python <2.6.

This includes auditing the code for places where we were doing
explicit 'sys.version' checks and removing them as appropriate.

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
    ('bzrlib.branch', 'Branch.hooks', 'BranchHooks'),
73
73
    ('bzrlib.bzrdir', 'BzrDir.hooks', 'BzrDirHooks'),
74
74
    ('bzrlib.commands', 'Command.hooks', 'CommandHooks'),
75
 
    ('bzrlib.config', 'ConfigHooks', '_ConfigHooks'),
76
75
    ('bzrlib.info', 'hooks', 'InfoHooks'),
77
76
    ('bzrlib.lock', 'Lock.hooks', 'LockHooks'),
78
77
    ('bzrlib.merge', 'Merger.hooks', 'MergeHooks'),
257
256
        try:
258
257
            uninstall = getattr(hook, "uninstall")
259
258
        except AttributeError:
260
 
            raise errors.UnsupportedOperation(self.uninstall_named_hook, self)
 
259
            raise errors.UnsupportedOperation(self.install_named_hook_lazy,
 
260
                self)
261
261
        else:
262
262
            uninstall(label)
263
263