Skip to content

Commit

Permalink
Fix the indentation in Extending Python code example (GH-3244)
Browse files Browse the repository at this point in the history
Code was indented with three spaces.
Fixed using four spaces.
  • Loading branch information
sir-sigurd authored and Mariatta committed Aug 30, 2017
1 parent cb76029 commit d9a2b99
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Doc/extending/extending.rst
Original file line number Diff line number Diff line change
Expand Up @@ -333,12 +333,12 @@ function.
The method table must be referenced in the module definition structure::

static struct PyModuleDef spammodule = {
PyModuleDef_HEAD_INIT,
"spam", /* name of module */
spam_doc, /* module documentation, may be NULL */
-1, /* size of per-interpreter state of the module,
or -1 if the module keeps state in global variables. */
SpamMethods
PyModuleDef_HEAD_INIT,
"spam", /* name of module */
spam_doc, /* module documentation, may be NULL */
-1, /* size of per-interpreter state of the module,
or -1 if the module keeps state in global variables. */
SpamMethods
};

This structure, in turn, must be passed to the interpreter in the module's
Expand Down

0 comments on commit d9a2b99

Please sign in to comment.