Skip to content

Fix KeyError in wcwidth-browser.py for 'c'ombining#106

Merged
jquast merged 1 commit intomasterfrom
smallfix-zerowidth-browser
Dec 1, 2023
Merged

Fix KeyError in wcwidth-browser.py for 'c'ombining#106
jquast merged 1 commit intomasterfrom
smallfix-zerowidth-browser

Conversation

@jquast
Copy link
Copy Markdown
Owner

@jquast jquast commented Dec 1, 2023

Resolve KeyError when launching wcwidth-browser.py
with default unicode_version of 'auto', then pressing
'c' (for combining characters)::

  File "/Users/jq/Code/wcwidth/bin/wcwidth-browser.py", line 120, in __init__
    for (begin, end) in ZERO_WIDTH[unicode_version]:
                        ~~~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: 'auto'

Resolve KeyError when launching wcwidth-browser.py
with default unicode_version of 'auto', then pressing
'c' (for combining characters)::

      File "/Users/jq/Code/wcwidth/bin/wcwidth-browser.py", line 120, in __init__
        for (begin, end) in ZERO_WIDTH[unicode_version]:
                            ~~~~~~~~~~^^^^^^^^^^^^^^^^^
    KeyError: 'auto'
@jquast jquast changed the title Fix KeyError in bin/wcwidth-browser for combining Fix KeyError in wcwidth-browser.py for 'c'ombining Dec 1, 2023
@jquast jquast merged commit 3a9f471 into master Dec 1, 2023
@jquast jquast deleted the smallfix-zerowidth-browser branch December 1, 2023 14:58
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.

2 participants