Skip to content

Conversation

@serhiy-storchaka
Copy link
Member

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

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)

…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 <[email protected]>
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) February 20, 2024 17:01
@serhiy-storchaka serhiy-storchaka added the needs backport to 3.11 only security fixes label Feb 20, 2024
@serhiy-storchaka serhiy-storchaka merged commit 5ea86f4 into python:3.12 Feb 20, 2024
@miss-islington-app
Copy link

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

@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 5ea86f496a4cfb34abbe2b7bb6fa7f25eeeb6294 3.11

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 <[email protected]>
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)
@bedevere-app
Copy link

bedevere-app bot commented Feb 20, 2024

GH-115738 is a backport of this pull request to the 3.11 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.11 only security fixes label Feb 20, 2024
@serhiy-storchaka serhiy-storchaka deleted the backport-937d282-3.12 branch February 20, 2024 18:14
@bedevere-app
Copy link

bedevere-app bot commented Feb 20, 2024

GH-115738 is a backport of this pull request to the 3.11 branch.

@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) (GH-115738)

(cherry picked from commit 5ea86f4)

Co-authored-by: Serhiy Storchaka <[email protected]>
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)
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