[MERGE] versionedfile.py code cleanups

Ian Clatworthy ian.clatworthy at internode.on.net
Wed Sep 19 09:57:14 BST 2007


More minor improvements. A trivial question as well for the style gods ...

We commonly use the pattern of having a method foo in a base class that
does the common stuff (e.g. parameter validation) and then calls to
method _foo to do the real work. In the base class, _foo simply does this:

  raise errors.NotImplementedError(self.foo)

Derived classes are responsible for implementing _foo. Given that,
should the NotImplementedError take self.foo or self._foo as it's parameter?

Ian C.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cleanup-versionedfile.patch
Type: text/x-patch
Size: 615 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070919/9146a1e2/attachment.bin 


More information about the bazaar mailing list