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

Fix custom repr for ParserError #993

Merged
merged 1 commit into from
Jan 2, 2020

Commits on Jan 2, 2020

  1. Fix custom repr for ParserError

    This was originally dead code, because an indentation error had `__repr__`
    defined after the `return` statement in `__str__`. The definition of the
    `__repr__` is also changed to be more in line with the conception of a
    repr as "what you would have to evalue to get this object".
    
    Even though this is not guaranteed behavior, this commit also adds a
    regression test to avoid simple errors like this in the future.
    pganssle committed Jan 2, 2020
    Configuration menu
    Copy the full SHA
    ea7f441 View commit details
    Browse the repository at this point in the history