Skip to content

Commit

Permalink
[3.6] Fix the indentation in Extending Python code example (GH-3244) (G…
Browse files Browse the repository at this point in the history
…H-3250)

Code was indented with three spaces.
Fixed using four spaces.
(cherry picked from commit d9a2b99)
  • Loading branch information
Mariatta committed Aug 31, 2017
1 parent 095a421 commit b5db7bb
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 b5db7bb

Please sign in to comment.