Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7fab3d1

Browse files
committed
BLD: Python 3 requires method definition flags to include METH_VARARGS when setting METH_KEYWORDS
1 parent 0fad023 commit 7fab3d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_macosx.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3779,12 +3779,12 @@ static void draw_image_user_coords_device_size(CGContextRef cr, CGImageRef im,
37793779
},
37803780
{"start_event_loop",
37813781
(PyCFunction)FigureCanvas_start_event_loop,
3782-
METH_KEYWORDS,
3782+
METH_KEYWORDS | METH_VARARGS,
37833783
"Runs the event loop until the timeout or until stop_event_loop is called.\n",
37843784
},
37853785
{"stop_event_loop",
37863786
(PyCFunction)FigureCanvas_stop_event_loop,
3787-
METH_KEYWORDS,
3787+
METH_KEYWORDS | METH_VARARGS,
37883788
"Stops the event loop that was started by start_event_loop.\n",
37893789
},
37903790
{NULL} /* Sentinel */

0 commit comments

Comments
 (0)