summaryrefslogtreecommitdiffstats
path: root/Doc/includes/shoddy.c
diff options
context:
space:
mode:
authorINADA Naoki <methane@users.noreply.github.com>2017-02-21 12:51:46 (GMT)
committerGitHub <noreply@github.com>2017-02-21 12:51:46 (GMT)
commitfb8fe72fc593438f6a0b934c6ff2d9c4aa28673d (patch)
tree50ad7fa12ff3fccb2675e6e4cf2a1590fe98fdce /Doc/includes/shoddy.c
parent2c700af5a761f83f303cc7295b660ac31f7d4ed1 (diff)
downloadcpython-fb8fe72fc593438f6a0b934c6ff2d9c4aa28673d.zip
cpython-fb8fe72fc593438f6a0b934c6ff2d9c4aa28673d.tar.gz
cpython-fb8fe72fc593438f6a0b934c6ff2d9c4aa28673d.tar.bz2
doc: fix compile error on "shoddy" example extension (GH-215)
Diffstat (limited to 'Doc/includes/shoddy.c')
-rw-r--r--Doc/includes/shoddy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/includes/shoddy.c b/Doc/includes/shoddy.c
index 07a2721..0c6d412 100644
--- a/Doc/includes/shoddy.c
+++ b/Doc/includes/shoddy.c
@@ -31,7 +31,7 @@ Shoddy_init(Shoddy *self, PyObject *args, PyObject *kwds)
static PyTypeObject ShoddyType = {
- PyObject_HEAD_INIT(NULL)
+ PyVarObject_HEAD_INIT(NULL, 0)
"shoddy.Shoddy", /* tp_name */
sizeof(Shoddy), /* tp_basicsize */
0, /* tp_itemsize */