Improve a comment in __init__.py.

This commit is contained in:
david-sarah 2012-05-14 16:34:31 +00:00
parent 4b80299fdd
commit bf7e351464

View File

@ -161,9 +161,8 @@ def get_package_versions_and_locations():
message="BaseException.message has been deprecated as of Python 2.6", message="BaseException.message has been deprecated as of Python 2.6",
append=True) append=True)
# This is to suppress various DeprecationWarnings and UserWarnings that # This is to suppress various DeprecationWarnings, UserWarnings, and RuntimeWarnings
# occur when modules are imported. See #859, #1435 and # (listed in _auto_deps.py) that occur when modules are imported.
# http://divmod.org/trac/ticket/2994 [broken link].
for msg in deprecation_messages: for msg in deprecation_messages:
warnings.filterwarnings("ignore", category=DeprecationWarning, message=msg, append=True) warnings.filterwarnings("ignore", category=DeprecationWarning, message=msg, append=True)