Skip to content

Conversation

iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Jun 29, 2022

The documentation for getline says:

This function will never raise an exception — it will return '' on errors

But it currently does raise exception for encoding errors. This PR fixes that.

@iritkatriel iritkatriel changed the title bpo-92336: linecache.getline should not raise exceptions on decoding errors gh-92336: linecache.getline should not raise exceptions on decoding errors Jun 29, 2022
@iritkatriel iritkatriel added type-bug An unexpected behavior, bug, or error needs backport to 3.10 only security fixes needs backport to 3.11 only security fixes labels Jun 29, 2022
@iritkatriel iritkatriel requested a review from gpshead June 29, 2022 09:51
@miss-islington
Copy link
Contributor

Thanks @iritkatriel for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖

@bedevere-bot
Copy link

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

@bedevere-bot
Copy link

GH-94435 is a backport of this pull request to the 3.10 branch.

@bedevere-bot bedevere-bot removed the needs backport to 3.10 only security fixes label Jun 30, 2022
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 30, 2022
…ding errors (pythonGH-94410)

(cherry picked from commit 21cbdae)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Jun 30, 2022
…ding errors (pythonGH-94410)

(cherry picked from commit 21cbdae)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
miss-islington added a commit that referenced this pull request Jun 30, 2022
…rrors (GH-94410)

(cherry picked from commit 21cbdae)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
miss-islington added a commit that referenced this pull request Jun 30, 2022
…rrors (GH-94410)

(cherry picked from commit 21cbdae)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
gvanrossum pushed a commit to gvanrossum/cpython that referenced this pull request Jun 30, 2022
@iritkatriel iritkatriel deleted the bpo-92336b branch July 25, 2023 18:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants