Use warnings module for deprecation warnings, not logging.
commit54a9d57088cb91611dfff7ad230f685ae2ed54cc
authorThomas Leonard <talex5@gmail.com>
Sat, 23 Feb 2008 13:11:26 +0000 (23 13:11 +0000)
committerThomas Leonard <talex5@gmail.com>
Sat, 23 Feb 2008 13:11:26 +0000 (23 13:11 +0000)
tree73f9042f39bb96c1aca6514ef128240712603c32
parent14b8496d73b5be9ffa0d6ddb339e83adf81b1e4a
Use warnings module for deprecation warnings, not logging.

This makes it easy to disable them for unit-testing, prevents showing the same
message multiple times, and allows showing the place in the caller where the
deprecated function was used.
tests/basetest.py
zeroinstall/injector/gpg.py
zeroinstall/injector/policy.py