Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Simplify exception handling in is_ascii. #9985

Merged
merged 1 commit into from
May 14, 2021

Commits on May 13, 2021

  1. Simplify exception handling in is_ascii.

    We can get away with just catching UnicodeError here.
    
        ⋮
        +-- ValueError
        |    +-- UnicodeError
        |         +-- UnicodeDecodeError
        |         +-- UnicodeEncodeError
        |         +-- UnicodeTranslateError
        ⋮
    
    https://docs.python.org/3/library/exceptions.html#exception-hierarchy
    
    Signed-off-by: Dan Callahan <[email protected]>
    callahad committed May 13, 2021
    Configuration menu
    Copy the full SHA
    c04dec2 View commit details
    Browse the repository at this point in the history