Skip to content

Commit e1348e0

Browse files
committed
Fix context default in C code
1 parent 50e6b01 commit e1348e0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

Modules/_asynciomodule.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2003,15 +2003,16 @@ _asyncio.Task.__init__
20032003
*
20042004
loop: object = None
20052005
name: object = None
2006-
context: object = None
2006+
context: object(c_default='NULL') = None
20072007
20082008
A coroutine wrapped in a Future.
20092009
[clinic start generated code]*/
20102010

20112011
static int
20122012
_asyncio_Task___init___impl(TaskObj *self, PyObject *coro, PyObject *loop,
20132013
PyObject *name, PyObject *context)
2014-
/*[clinic end generated code: output=49ac96fe33d0e5c7 input=924522490c8ce825]*/
2014+
/*[clinic end generated code: output=49ac96fe33d0e5c7 input=f45c94aefa9c235a]*/
2015+
20152016
{
20162017
if (future_init((FutureObj*)self, loop)) {
20172018
return -1;

Modules/clinic/_asynciomodule.c.h

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy