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

Resolve differences between seek_until docstring and implementation #980

Merged

Conversation

eslavich
Copy link
Contributor

The GenericFile.seek_until method turned out to have a couple of problems -- besides the mismatch on return code, the docstring also advertises an exception argument that is supposed to cause the method to raise an error when the delimiter isn't found. I fixed both and also created a new subclass of ValueError so that users can catch the exception in a more targeted way.

Resolves #876

@eslavich eslavich force-pushed the eslavich-update-seek-until-docstring branch from 5a03b72 to a666707 Compare April 29, 2021 12:52
@eslavich eslavich merged commit 38e797d into asdf-format:master Apr 29, 2021
@eslavich eslavich deleted the eslavich-update-seek-until-docstring branch April 29, 2021 13:52
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.

Method return comment doesn't match actual return values.
2 participants