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

fix encoding issues in urwid and curses by thomasballinger · Pull Request #702 · bpython/bpython · GitHub

fix encoding issues in urwid and curses - #702

Merged
sebastinas merged 2 commits into
bpython:masterfrom
thomasballinger:fix-urwid
Nov 6, 2017
Merged

fix encoding issues in urwid and curses#702
sebastinas merged 2 commits into
bpython:masterfrom
thomasballinger:fix-urwid

Conversation

Copy link
Copy Markdown
Member

fixes #701

Make it clear with comments that self.stdout_hist is bytes in Python 2, unicode in Python 3. Blech, would be nice to fix that to be unicode everywhere.

To debug I made self.stdout_hist a type-checking property, maybe this is worth doing for real? Also maybe static typechecking would be nice? But this PR just fixes this bug.

glyph commented Aug 19, 2017

Copy link
Copy Markdown

"bytes on python 2, unicode in python 3" is more easily referred to as "native str" :)

Copy link
Copy Markdown
Contributor

Would be good to have test case so that we don't break that again in the future..

sebastinas merged commit 1991216 into bpython:master Nov 6, 2017
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

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bpython-urwid on python 2 can't format tracebacks that contain non-ASCII characters

3 participants


Back | FazBrowse Home | New Git URL