]> granicus.if.org Git - python/commitdiff
[3.6] Fix the indentation in Extending Python code example (GH-3244) (GH-3250)
authorMariatta <Mariatta@users.noreply.github.com>
Thu, 31 Aug 2017 06:11:02 +0000 (23:11 -0700)
committerGitHub <noreply@github.com>
Thu, 31 Aug 2017 06:11:02 +0000 (23:11 -0700)
Code was indented with three spaces.
Fixed using four spaces.
(cherry picked from commit d9a2b99ac45b5529d2a6227b0d529397be831dab)

Doc/extending/extending.rst

index 4ac820a432b9b0171397036b1ad7677e153d2e39..93584627a291f76ff41dd5dc9ace0d01726be597 100644 (file)
@@ -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