From: david-sarah Date: Tue, 20 Jul 2010 01:19:39 +0000 (-0700) Subject: __init__.py: silence DeprecationWarning about BaseException.message globally. fixes... X-Git-Tag: trac-4600~15 X-Git-Url: https://git.rkrishnan.org/components/com_hotproperty/%22doc.html/...?a=commitdiff_plain;h=94bec75ddaddaaf595dae51bb346c1a60b950b61;p=tahoe-lafs%2Ftahoe-lafs.git __init__.py: silence DeprecationWarning about BaseException.message globally. fixes #1129 --- diff --git a/src/allmydata/__init__.py b/src/allmydata/__init__.py index acaeda27..0b5d6129 100644 --- a/src/allmydata/__init__.py +++ b/src/allmydata/__init__.py @@ -35,10 +35,12 @@ finally: warnings.filters.pop() warnings.filters.pop() -# This warning is generated by twisted, but not when it is imported, only on an error. +# This warning is generated by twisted, PyRex, and possibly other packages, +# but can happen at any time, not only when they are imported. See +# http://tahoe-lafs.org/trac/tahoe-lafs/ticket/1129 . warnings.filterwarnings("ignore", category=DeprecationWarning, message="BaseException.message has been deprecated as of Python 2.6", - module=".*twisted.*", append=True) + append=True) __version__ = "unknown" try: