From 94bec75ddaddaaf595dae51bb346c1a60b950b61 Mon Sep 17 00:00:00 2001 From: david-sarah Date: Mon, 19 Jul 2010 18:19:39 -0700 Subject: [PATCH] __init__.py: silence DeprecationWarning about BaseException.message globally. fixes #1129 --- src/allmydata/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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: -- 2.45.2