From: Benjamin Peterson Date: Sat, 3 Apr 2010 15:44:56 +0000 (+0000) Subject: silence PyCObject warnings in bsddb X-Git-Tag: v2.7b1~100 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7beeeb5713e355cbeb0c6d26e256d13ce5e4761a;p=python silence PyCObject warnings in bsddb --- diff --git a/Lib/bsddb/__init__.py b/Lib/bsddb/__init__.py index dfa8a66863..b935631fc9 100644 --- a/Lib/bsddb/__init__.py +++ b/Lib/bsddb/__init__.py @@ -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':