diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-10-07 23:45:53 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-07 23:45:53 (GMT) |
commit | c2f21af42a50b36e0ef2fce9caaf3a36e946431c (patch) | |
tree | cf930b59f95e04ca25d15617dc0a3177d0c471f3 /Modules/_csv.c | |
parent | 17c9ce112fd80300afc446d1a67efefdf97faf68 (diff) | |
download | cpython-c2f21af42a50b36e0ef2fce9caaf3a36e946431c.zip cpython-c2f21af42a50b36e0ef2fce9caaf3a36e946431c.tar.gz cpython-c2f21af42a50b36e0ef2fce9caaf3a36e946431c.tar.bz2 |
gh-65496: Correct wording on csv's skipinitialspace argument (GH-96170)
(cherry picked from commit 676d8ef3806758bcd1d3fd84a746c8a9b64480d0)
Co-authored-by: Stanley <46876382+slateny@users.noreply.github.com>
Diffstat (limited to 'Modules/_csv.c')
-rw-r--r-- | Modules/_csv.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_csv.c b/Modules/_csv.c index cbf4c5d..7519da6 100644 --- a/Modules/_csv.c +++ b/Modules/_csv.c @@ -704,7 +704,7 @@ parse_process_char(ReaderObj *self, _csvstate *module_state, Py_UCS4 c) self->state = ESCAPED_CHAR; } else if (c == ' ' && dialect->skipinitialspace) - /* ignore space at start of field */ + /* ignore spaces at start of field */ ; else if (c == dialect->delimiter) { /* save empty field */ @@ -1647,9 +1647,9 @@ PyDoc_STRVAR(csv_module_doc, " quoting character. It defaults to '\"'.\n" " * delimiter - specifies a one-character string to use as the\n" " field separator. It defaults to ','.\n" -" * skipinitialspace - specifies how to interpret whitespace which\n" -" immediately follows a delimiter. It defaults to False, which\n" -" means that whitespace immediately following a delimiter is part\n" +" * skipinitialspace - specifies how to interpret spaces which\n" +" immediately follow a delimiter. It defaults to False, which\n" +" means that spaces immediately following a delimiter is part\n" " of the following field.\n" " * lineterminator - specifies the character sequence which should\n" " terminate rows.\n" |