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: import xml.sax.handler from the right place #2041

Merged
merged 1 commit into from Jul 20, 2022

Conversation

aucampia
Copy link
Member

Summary of changes

Change the import of xml.sax.handler in the TriX parser so that it
imports from xml.sax and not from xml.sax.saxutils. Importing from
xml.sax.saxutils causes mypy to fail but it is also wrong as there is
no documented handler in xml.sax.saxutils.

Checklist

  • Checked that there aren't other open pull requests for
    the same change.
  • Checked that all tests and type checking passes.
  • For changes that have a potential impact on users of this project:
    • Considered updating our changelog (CHANGELOG.md).
  • Considered granting push permissions to the PR branch,
    so maintainers can fix minor issues and keep your PR up to date.

Change the import of `xml.sax.handler` in the TriX parser so that it
imports from `xml.sax` and not from `xml.sax.saxutils`. Importing from
`xml.sax.saxutils` causes mypy to fail but it is also wrong as there is
no documented `handler` in `xml.sax.saxutils`.
@aucampia aucampia marked this pull request as ready for review July 19, 2022 22:43
@aucampia aucampia requested a review from a team July 19, 2022 22:48
Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@aucampia aucampia merged commit 92c9400 into master Jul 20, 2022
@aucampia aucampia deleted the iwana-20220720T0025-fix_sax_import branch July 21, 2022 21:27
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.

None yet

1 participant