aboutsummaryrefslogtreecommitdiff
path: root/discord/utils.py
diff options
context:
space:
mode:
authorRapptz <[email protected]>2016-04-25 20:52:16 -0400
committerRapptz <[email protected]>2016-04-25 20:52:16 -0400
commitfda0c8cea08450c19105791a99091ddd6511268c (patch)
tree686788dae89eca9c0b49803ec8d6dda306b80664 /discord/utils.py
parent[commands] Make sure that mentions are the entire string. (diff)
downloaddiscord.py-fda0c8cea08450c19105791a99091ddd6511268c.tar.xz
discord.py-fda0c8cea08450c19105791a99091ddd6511268c.zip
Add compatibility layer for `run_coroutine_threadsafe`.
This is a breaking change, since discord.utils.create_task is moved to discord.compat.create_task.
Diffstat (limited to 'discord/utils.py')
-rw-r--r--discord/utils.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/discord/utils.py b/discord/utils.py
index 2d19597f..d4056b23 100644
--- a/discord/utils.py
+++ b/discord/utils.py
@@ -236,7 +236,3 @@ def _bytes_to_base64_data(data):
def to_json(obj):
return json.dumps(obj, separators=(',', ':'), ensure_ascii=True)
-try:
- create_task = asyncio.ensure_future
-except AttributeError:
- create_task = asyncio.async