Visitar URL original
small refactor to s_hist by rybarczykj · Pull Request #842 · bpython/bpython · GitHub
The Wayback Machine - https://web.archive.org/web/20200905021306/https://github.com/bpython/bpython/pull/842
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

small refactor to s_hist #842

Merged
merged 1 commit into from Aug 14, 2020
Merged

small refactor to s_hist #842

merged 1 commit into from Aug 14, 2020

Conversation

@rybarczykj
Copy link
Contributor

rybarczykj commented Aug 14, 2020

Via issue #811, it was unclear what exactly s_hist is and where it's used. As I mention in that thread, s_hist stores inputs and outputs formatted as old formatstrings (with \x01 \x02 \x03 and \x04). It's used by cli.py to recreate the screen on screen resize.

With this PR, I

  • rename s_hist to screen_hist to be more clear about it's purpose (is this fine?)
  • added some comments to clarify things
  • remove unused modifications to s_hist in urwid.py
@sebastinas sebastinas merged commit 84d581a into bpython:master Aug 14, 2020
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@rybarczykj rybarczykj mentioned this pull request Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.