Kaydet (Commit) 7beeeb57 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

silence PyCObject warnings in bsddb

üst 7daf985f
...@@ -48,6 +48,7 @@ if (sys.version_info >= (2, 6)) and (sys.version_info < (3, 0)) : ...@@ -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':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment