[Checkins] SVN: zope.deprecation/trunk/ Fix
zope.deprecation.tests.warn() to have an identical signature to
Wichert Akkerman
wichert at wiggy.net
Fri Jun 27 10:10:39 EDT 2008
Previously Jan-Wijbrand Kolman wrote:
> Log message for revision 87829:
> Fix zope.deprecation.tests.warn() to have an identical signature to
> warnings.warn() and to handle .pyc and .pyo files. Update changes.
> Add dev marker.
> Modified: zope.deprecation/trunk/src/zope/deprecation/tests.py
> ===================================================================
> --- zope.deprecation/trunk/src/zope/deprecation/tests.py 2008-06-27 13:38:04 UTC (rev 87828)
> +++ zope.deprecation/trunk/src/zope/deprecation/tests.py 2008-06-27 14:02:49 UTC (rev 87829)
> @@ -43,12 +43,15 @@
> """Demonstrate that deprecate() also works in a local scope."""
> deprecated('demo4', 'demo4 is no more.')
>
> -def warn(message, type_, stacklevel):
> +def warn(message, category=None, stacklevel=1):
> print "From tests.py's showwarning():"
> -
> +
Won't this break code that uses the old calling convention?
Wichert.
--
Wichert Akkerman <wichert at wiggy.net> It is simple to make things.
http://www.wiggy.net/ It is hard to make things simple.
More information about the Checkins
mailing list