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

prevent unnessary b' prefix in parse_isodate exception messages #1122

Merged
merged 1 commit into from
May 20, 2021

Commits on May 20, 2021

  1. Decode input str when reporting an error in parse_isodate

    As the function is wrapped around a decorator that converts the input to
    bytes, when an exception is raised that includes the value, it contains
    the value as bytes (b"<val>"). To provide the expected str in Python 3,
    decode that to unicode.
    
    This will result in `u""` for Python 2 callers, but given that we plan
    to drop support for Python 2 in the short term, it feels acceptable.
    pawl authored and mariocj89 committed May 20, 2021
    Configuration menu
    Copy the full SHA
    5cf3e3c View commit details
    Browse the repository at this point in the history