mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-21 10:01:54 +00:00
__init__.py: silence DeprecationWarning about BaseException.message globally. fixes #1129
This commit is contained in:
parent
bdc6fd2f8b
commit
94bec75dda
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user