summaryrefslogtreecommitdiff
path: root/extmod/uasyncio/task.py
diff options
context:
space:
mode:
Diffstat (limited to 'extmod/uasyncio/task.py')
-rw-r--r--extmod/uasyncio/task.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/extmod/uasyncio/task.py b/extmod/uasyncio/task.py
index 1d5bcc5cf..1788cf0ed 100644
--- a/extmod/uasyncio/task.py
+++ b/extmod/uasyncio/task.py
@@ -151,7 +151,7 @@ class Task:
return False
# Can't cancel self (not supported yet).
if self is core.cur_task:
- raise RuntimeError("cannot cancel self")
+ raise RuntimeError("can't cancel self")
# If Task waits on another task then forward the cancel to the one it's waiting on.
while isinstance(self.data, Task):
self = self.data