[patch] deprecation warnings branch

Robey Pointer robey at lag.net
Sun Jan 8 01:01:33 GMT 2006


On 5 Jan 2006, at 3:53, Robert Collins wrote:

> This adds deprecated_method and deprecated_function decorators. Heres
> how they work:
>
> @deprecated_function(zero_seven)
> def get_bzr_revision():
>     """If bzr is run from a branch, return (revno,revid) or None."""
>     import bzrlib.errors
>     ...

Why not just

	@deprecated_function(0.7)

?  (Being a visual instead of verbal person, I tend to just skim over  
words like zero_seven at first glance.)

robey





More information about the bazaar mailing list