summaryrefslogtreecommitdiff
path: root/Objects
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-11-16 18:55:29 +0200
committerGitHub <noreply@github.com>2019-11-16 18:55:29 +0200
commitbd44a7ead9f7336d7bb45f186b2b6ca0300154f7 (patch)
treef53b1af72f9a828420c251c5ecc27e20d66eaffe /Objects
parent5fd5cb8d85fab3393dd76c7f3de1cdeb8ecf7203 (diff)
downloadcpython-git-bd44a7ead9f7336d7bb45f186b2b6ca0300154f7.tar.gz
bpo-38650: Constify PyStructSequence_UnnamedField. (GH-17005)
Make it a constant and referring to a constant string.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/structseq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/structseq.c b/Objects/structseq.c
index c158afccb9..c86fbe50b9 100644
--- a/Objects/structseq.c
+++ b/Objects/structseq.c
@@ -18,7 +18,7 @@ static const char unnamed_fields_key[] = "n_unnamed_fields";
/* Fields with this name have only a field index, not a field name.
They are only allowed for indices < n_visible_fields. */
-char *PyStructSequence_UnnamedField = "unnamed field";
+const char * const PyStructSequence_UnnamedField = "unnamed field";
_Py_IDENTIFIER(n_sequence_fields);
_Py_IDENTIFIER(n_fields);
_Py_IDENTIFIER(n_unnamed_fields);