mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
silence PyCObject warnings in bsddb
This commit is contained in:
parent
7daf985feb
commit
7beeeb5713
1 changed files with 1 additions and 0 deletions
|
@ -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; "
|
warnings.warnpy3k("in 3.x, the bsddb module has been removed; "
|
||||||
"please use the pybsddb project instead",
|
"please use the pybsddb project instead",
|
||||||
DeprecationWarning, 2)
|
DeprecationWarning, 2)
|
||||||
|
warnings.filterwarnings("*PyCObject*", DeprecationWarning, "_bsddb")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if __name__ == 'bsddb3':
|
if __name__ == 'bsddb3':
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue