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

bpo-30485: Re-allow empty strings in ElementPath namespace mappings #12830

Merged
merged 1 commit into from
Apr 14, 2019

Conversation

scoder
Copy link
Contributor

@scoder scoder commented Apr 14, 2019

They might actually be harmless and unused (and thus went undetected previously).

https://bugs.python.org/issue30485

with self.assertRaisesRegex(ValueError, 'namespace prefix'):
root.findall(".//xx:b", namespaces=nsmap)
#nsmap = {'xx': 'X', '': 'Y'}
#with self.assertRaisesRegex(ValueError, 'namespace prefix'):
Copy link
Member

Choose a reason for hiding this comment

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

Commented test sometimes causes confusion over it's existence. Perhaps remove the test since tbe ValueError is removed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was planning to bring back the functionality ASAP, probably as a (deprecation?) warning. But I guess it's better to have a clean removal for now, as the discussion what to do about it is not urgent.

…ince they might actually be harmless and unused (and thus went undetected previously).
@scoder scoder merged commit 3c5a858 into python:master Apr 14, 2019
@bedevere-bot
Copy link

@scoder: Please replace # with GH- in the commit message next time. Thanks!

@scoder scoder deleted the bpo-30485_fix branch April 14, 2019 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants