Suppress deprecation notices

John Arbash Meinel john at arbash-meinel.com
Wed May 14 20:00:45 BST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Russ Brown wrote:
| Is there any way that I can suppress or disable notices about deprecated
| API calls?
|
| I understand that they're useful (essential?) for plugin authors, but
| for general users they're just noise.
|
| Thanks.
|

You can change the first line of the 'bzr' script so instead of:
#!/usr/bin/python

you have something like:
#!/usr/bin/python -Wignore::DeprecationWarning

That will suppress all DeprecationWarnings.

We've talked about changing it so that the 'main' function in 'bzr' calls this
(say if the bzrlib.version_info is 'final' or 'candidate' instead of 'dev'.)
Nobody has actually put that together, though.

John
=:->

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkgrNt0ACgkQJdeBCYSNAAOvoQCgiEF8x3sjq9AcG+mwraBAACuV
SYUAnjbpmieIHOR527qsLvIcEUs12akE
=ciDK
-----END PGP SIGNATURE-----



More information about the bazaar mailing list