Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-115712: Support CSV dialects with delimiter=' ' and skipinitialspace=True #115721

Merged
merged 1 commit into from
Feb 20, 2024

Conversation

serhiy-storchaka
Copy link
Member

@serhiy-storchaka serhiy-storchaka commented Feb 20, 2024

Restore support of such combination, disabled in gh-113796.

csv.writer() now quotes empty fields if delimiter is a space and skipinitialspace is true and raises exception if quoting is not possible.

…ialspace=True

Restore support of such combination, disabled in pythongh-113796.

csv.writer() now quotes empty fields if delimiter is a space and
skipinitialspace is true and raises exception if quoting is not possible.
@serhiy-storchaka serhiy-storchaka added needs backport to 3.11 only security fixes needs backport to 3.12 bug and security fixes labels Feb 20, 2024
@serhiy-storchaka serhiy-storchaka merged commit 937d282 into python:main Feb 20, 2024
38 checks passed
@miss-islington-app
Copy link

Thanks @serhiy-storchaka for the PR 🌮🎉.. I'm working now to backport this PR to: 3.11, 3.12.
🐍🍒⛏🤖

@serhiy-storchaka serhiy-storchaka deleted the csv-space-delimiter branch February 20, 2024 16:09
@miss-islington-app
Copy link

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.12 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 937d2821501de7adaa5ed8491eef4b7f3dc0940a 3.12

@miss-islington-app
Copy link

Sorry, @serhiy-storchaka, I could not cleanly backport this to 3.11 due to a conflict.
Please backport using cherry_picker on command line.

cherry_picker 937d2821501de7adaa5ed8491eef4b7f3dc0940a 3.11

serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Feb 20, 2024
…kipinitialspace=True (pythonGH-115721)

Restore support of such combination, disabled in pythongh-113796.

csv.writer() now quotes empty fields if delimiter is a space and
skipinitialspace is true and raises exception if quoting is not possible.
(cherry picked from commit 937d282)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Feb 20, 2024

GH-115729 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.12 bug and security fixes label Feb 20, 2024
@serhiy-storchaka serhiy-storchaka removed the needs backport to 3.11 only security fixes label Feb 20, 2024
@serhiy-storchaka serhiy-storchaka removed their assignment Feb 20, 2024
serhiy-storchaka added a commit that referenced this pull request Feb 20, 2024
…tialspace=True (GH-115721) (GH-115729)

csv.writer() now quotes empty fields if delimiter is a space and
skipinitialspace is true and raises exception if quoting is not possible.
(cherry picked from commit 937d282)
serhiy-storchaka added a commit to serhiy-storchaka/cpython that referenced this pull request Feb 20, 2024
…' and skipinitialspace=True (pythonGH-115721) (pythonGH-115729)

(cherry picked from commit 5ea86f4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
csv.writer() now quotes empty fields if delimiter is a space and
skipinitialspace is true and raises exception if quoting is not possible.
(cherry picked from commit 937d282)
serhiy-storchaka added a commit that referenced this pull request Feb 20, 2024
…tialspace=True (GH-115721) (GH-115729) (GH-115738)

(cherry picked from commit 5ea86f4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
csv.writer() now quotes empty fields if delimiter is a space and
skipinitialspace is true and raises exception if quoting is not possible.
(cherry picked from commit 937d282)
woodruffw pushed a commit to woodruffw-forks/cpython that referenced this pull request Mar 4, 2024
…ialspace=True (pythonGH-115721)

Restore support of such combination, disabled in pythongh-113796.

csv.writer() now quotes empty fields if delimiter is a space and
skipinitialspace is true and raises exception if quoting is not possible.
diegorusso pushed a commit to diegorusso/cpython that referenced this pull request Apr 17, 2024
…ialspace=True (pythonGH-115721)

Restore support of such combination, disabled in pythongh-113796.

csv.writer() now quotes empty fields if delimiter is a space and
skipinitialspace is true and raises exception if quoting is not possible.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant