Procházet zdrojové kódy

Removed obsolete doc reference to asyncio.iscoroutinefunction.

Nick Pope před 2 roky
rodič
revize
970f61fefb
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      docs/topics/http/middleware.txt

+ 1 - 1
docs/topics/http/middleware.txt

@@ -312,7 +312,7 @@ If your middleware has both ``sync_capable = True`` and
 ``async_capable = True``, then Django will pass it the request without
 converting it. In this case, you can work out if your middleware will receive
 async requests by checking if the ``get_response`` object you are passed is a
-coroutine function, using :py:func:`asyncio.iscoroutinefunction`.
+coroutine function, using ``asyncio.iscoroutinefunction``.
 
 The ``django.utils.decorators`` module contains
 :func:`~django.utils.decorators.sync_only_middleware`,