Skip to content

bpo-33361: Fix bug with seeking in StreamRecoders #8278

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

Merged
merged 7 commits into from
May 31, 2019

Conversation

ammaraskar
Copy link
Member

@ammaraskar ammaraskar commented Jul 14, 2018

The test is a basic example from the bpo ticket, more can be added if necessary.

https://bugs.python.org/issue33361

Lib/codecs.py Outdated
@@ -847,6 +847,12 @@ def reset(self):
self.reader.reset()
self.writer.reset()

def seek(self, offset, whence=0):
# Seeks must be propogated to both the readers and writers
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor nitpick but there is a typo in the comment ("propogated" -> "propagated")

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, fixed.

Copy link
Contributor

@BoboTiG BoboTiG left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the patch :)

@berkerpeksag berkerpeksag merged commit a6ec1ce into python:master May 31, 2019
@miss-islington
Copy link
Contributor

Thanks @ammaraskar for the PR, and @berkerpeksag for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@berkerpeksag
Copy link
Member

Thanks!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 31, 2019
(cherry picked from commit a6ec1ce)

Co-authored-by: Ammar Askar <ammar_askar@hotmail.com>
@bedevere-bot
Copy link

GH-13708 is a backport of this pull request to the 3.7 branch.

berkerpeksag pushed a commit that referenced this pull request May 31, 2019
(cherry picked from commit a6ec1ce)

Co-authored-by: Ammar Askar <ammar_askar@hotmail.com>
DinoV pushed a commit to DinoV/cpython that referenced this pull request Jan 14, 2020
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.

7 participants