silence PyCObject warnings in bsddb

This commit is contained in:
Benjamin Peterson 2010-04-03 15:44:56 +00:00
parent 7daf985feb
commit 7beeeb5713
1 changed files with 1 additions and 0 deletions

View File

@ -48,6 +48,7 @@ if (sys.version_info >= (2, 6)) and (sys.version_info < (3, 0)) :
warnings.warnpy3k("in 3.x, the bsddb module has been removed; "
"please use the pybsddb project instead",
DeprecationWarning, 2)
warnings.filterwarnings("*PyCObject*", DeprecationWarning, "_bsddb")
try:
if __name__ == 'bsddb3':