| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
| elif self.__vt_support: | ||
| # If virtual terminal is enabled, scanning VT sequences | ||
| self.event_queue.push(rec.Event.KeyEvent.uChar.UnicodeChar) | ||
| for char in raw_key.encode(self.event_queue.encoding, |
There was a problem hiding this comment.
I'd love to use PEP-467 iterbytes() here :)
Sorry, something went wrong.
|
I like this proposal. |
Sorry, something went wrong.
|
Closing since #131901 is merged and backported. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
ab8efa7 is the fix on top of the reverted #130805.
49078f3 shows how I'd like to only accept bytes of length=1 in BaseEventQueue.push().
Only the tests used the int code path somewhat non-transparent by using strings which got converted to due to else ord(char) to bytes of length=1 again:
Maybe too much churn, thus just a draft.