summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2010-04-03 15:58:15 (GMT)
committerBenjamin Peterson <benjamin@python.org>2010-04-03 15:58:15 (GMT)
commit674a9eb6e3504d309d83ab84f1c49c9276880cd2 (patch)
tree4cd5801e4d48fbfea661849818dadb30c0b73bc2 /Lib
parent8a95071fc1ef3dabb0b0f090f09749a12ef6b620 (diff)
downloadcpython-674a9eb6e3504d309d83ab84f1c49c9276880cd2.zip
cpython-674a9eb6e3504d309d83ab84f1c49c9276880cd2.tar.gz
cpython-674a9eb6e3504d309d83ab84f1c49c9276880cd2.tar.bz2
remove deprecation warnings silence attempting
Diffstat (limited to 'Lib')
-rw-r--r--Lib/bsddb/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/bsddb/__init__.py b/Lib/bsddb/__init__.py
index b935631..fa44900 100644
--- a/Lib/bsddb/__init__.py
+++ b/Lib/bsddb/__init__.py
@@ -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':