Kaydet (Commit) 674a9eb6 authored tarafından Benjamin Peterson's avatar Benjamin Peterson

remove deprecation warnings silence attempting

üst 8a95071f
......@@ -43,12 +43,11 @@ import sys
absolute_import = (sys.version_info[0] >= 3)
if (sys.version_info >= (2, 6)) and (sys.version_info < (3, 0)) :
import warnings
if sys.py3kwarning and (__name__ != 'bsddb3') :
import warnings
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':
......
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