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 or URLError which has been removed in xmlschema #524

Merged
merged 1 commit into from Jun 4, 2020

Conversation

sphuber
Copy link
Contributor

@sphuber sphuber commented Jun 4, 2020

Fixes #523

As of xmlschema==1.2.0 the xmlschema.exceptions.URLError exception
has been removed. This was just an alias for Python 2 and 3 compatibility
reasons, which now that Python 2 support is dropped can be removed.
Simply using from urllib.error import URLError addressed the problem.

As of `xmlschema==1.2.0` the `xmlschema.exceptions.URLError` exception
has been removed. This was just an alias for Python 2 and 3 compatibility
reasons, which now that Python 2 support is dropped can be removed.
Simply using `from urllib.error import URLError` addressed the problem.
@sphuber sphuber requested a review from greschd June 4, 2020 12:31
Copy link
Member

@greschd greschd left a comment

Choose a reason for hiding this comment

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

Looks good! Since this breaks current installs, do you want to publish a bugfix release to 3.0.0 that just restricts xmlschema to 1.1?

I guess this fix isn't possible there because we still need Py2 compatibility.

@sphuber
Copy link
Contributor Author

sphuber commented Jun 4, 2020

I had already started this but then realized that 3.0.0 was released with xmlschema==1.0.13 so it should not break

@greschd
Copy link
Member

greschd commented Jun 4, 2020

Ah, perfect 👍

@greschd greschd merged commit 6dd89e4 into develop Jun 4, 2020
@greschd greschd deleted the fix/523/xmlschema-dependency branch June 4, 2020 13:01
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.

Latest version of xmlschema breaks the PwParser
2 participants