diff options
| author | Rapptz <[email protected]> | 2016-01-13 23:13:54 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-01-13 23:13:54 -0500 |
| commit | b88562c5c5dc76642cd553492413ec5fd12fc00d (patch) | |
| tree | 6061e92e1920c5e0e7222ebf029675ea560a24a0 | |
| parent | Attempt to fix compressed READY to work in both Python2 and Python3. (diff) | |
| download | discord.py-b88562c5c5dc76642cd553492413ec5fd12fc00d.tar.xz discord.py-b88562c5c5dc76642cd553492413ec5fd12fc00d.zip | |
Fix warning message.v0.9.2
| -rw-r--r-- | discord/__init__.py | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/discord/__init__.py b/discord/__init__.py index c3ee01fc..bb68998f 100644 --- a/discord/__init__.py +++ b/discord/__init__.py @@ -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 |