FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-92336: linecache.getline should not raise exceptions on decoding errors by iritkatriel · Pull Request #94410 · python/cpython · GitHub

Repository navigation

gh-92336: linecache.getline should not raise exceptions on decoding errors - #94410

Merged
iritkatriel merged 3 commits into
python:mainfrom
iritkatriel:bpo-92336b
Jun 30, 2022
Merged

iritkatriel merged 3 commits into
python:mainfrom
iritkatriel:bpo-92336b

Conversation

iritkatriel commented Jun 29, 2022 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

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 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 added type-bug An unexpected behavior, bug, or error needs backport to 3.10 needs backport to 3.11 only security fixes labels Jun 29, 2022
iritkatriel requested a review from gpshead June 29, 2022 09:51
Comment thread Lib/test/test_linecache.py Outdated
Comment thread Lib/linecache.py

Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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

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 deleted the bpo-92336b branch July 25, 2023 18:07
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL