Fix warning message.

This commit is contained in:
Rapptz 2016-01-13 23:13:54 -05:00
parent b60c71ab2e
commit b88562c5c5

View File

@ -36,14 +36,15 @@ from . import utils
import logging
import warnings
warnings.warn(
"""
The next version of discord.py(v0.10.0) will have major breaking changes
_warning_message = """
The next major version of discord.py (v0.10.0) will have major breaking changes
that will require updating/changing your code.
Please check the migrating guide to alleviate yourself of unexpected issues.
http://discordpy.readthedocs.org/en/latest/migrating.html
It is stongly recommended to make the switch as soon as possible.
""", Warning)
It is strongly recommended to make the switch as soon as possible.
"""
warnings.warn(_warning_message, UserWarning)
try:
from logging import NullHandler