[Python-checkins] [3.6] Fix the indentation in Extending Python code example (GH-3244) (GH-3250)

Mariatta webhook-mailer at python.org
Thu Aug 31 02:11:05 EDT 2017


https://github.com/python/cpython/commit/b5db7bb9da1120912a1795fbc6106d0eba5a01c7
commit: b5db7bb9da1120912a1795fbc6106d0eba5a01c7
branch: 3.6
author: Mariatta <Mariatta at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2017-08-30T23:11:02-07:00
summary:

[3.6] Fix the indentation in Extending Python code example (GH-3244) (GH-3250)

Code was indented with three spaces.
Fixed using four spaces.
(cherry picked from commit d9a2b99ac45b5529d2a6227b0d529397be831dab)

files:
M Doc/extending/extending.rst

diff --git a/Doc/extending/extending.rst b/Doc/extending/extending.rst
index 4ac820a432b..93584627a29 100644
--- a/Doc/extending/extending.rst
+++ b/Doc/extending/extending.rst
@@ -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



More information about the Python-checkins mailing list