[MERGE] More explicit use of Tree.get_root_id()

James Westby jw+debian at jameswestby.net
Fri Oct 26 22:20:11 BST 2007


On (26/10/07 14:23), John Arbash Meinel wrote:
> +    def test_get_root_id_default(self):
> +        tree = self.get_tree_with_default_root_id()
> +        tree.lock_read()
> +        self.addCleanup(tree.unlock)

Can I ask what the difference is between this and using try/finally?

Thanks,

James

-- 
  James Westby   --    GPG Key ID: B577FE13    --     http://jameswestby.net/
  seccure key - (3+)k7|M*edCX/.A:n*N!>|&7U.L#9E)Tu)T0>AM - secp256r1/nistp256



More information about the bazaar mailing list