__init__.py: silence DeprecationWarning about BaseException.message globally. fixes #1129

This commit is contained in:
david-sarah 2010-07-19 18:19:39 -07:00
parent bdc6fd2f8b
commit 94bec75dda

View File

@ -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: