summaryrefslogtreecommitdiff
path: root/django/utils/asyncio.py
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-04 08:08:27 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-07 20:37:05 +0100
commit7119f40c9881666b6f9b5cf7df09ee1d21cc8344 (patch)
treefa50869f5614295f462d9bf77fec59365c621609 /django/utils/asyncio.py
parent9c19aff7c7561e3a82978a272ecdaad40dda5c00 (diff)
Refs #33476 -- Refactored code to strictly match 88 characters line length.
Diffstat (limited to 'django/utils/asyncio.py')
-rw-r--r--django/utils/asyncio.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/django/utils/asyncio.py b/django/utils/asyncio.py
index 7e0b439db2..1e79f90c2c 100644
--- a/django/utils/asyncio.py
+++ b/django/utils/asyncio.py
@@ -30,7 +30,10 @@ def async_unsafe(message):
# If the message is actually a function, then be a no-arguments decorator.
if callable(message):
func = message
- message = "You cannot call this from an async context - use a thread or sync_to_async."
+ message = (
+ "You cannot call this from an async context - use a thread or "
+ "sync_to_async."
+ )
return decorator(func)
else:
return decorator