-
Notifications
You must be signed in to change notification settings - Fork 51
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
Still doesn't work with Python 3.6 #3
Comments
also reported this to upstream Python, since the Python docs explicitly endorse the use of defusedxml: https://bugs.python.org/issue29050 |
#4 should fix this, I think. |
This seems to break my installation of
|
Thanks so much for the patch, I was able to fix the issue until everything is merged to upstream. |
https://travis-ci.org/nsupdate-info/nsupdate.info/jobs/193934880 having same issue, can't test nsupdate.info on py36. |
I have releases 0.5.0 yesterday. |
Thanks a lot. I have sent 0.5.0 out for Fedora 24, 25 and Rawhide, and EPEL 7. I sent 0.4.1 to EPEL 6, as EL 6 is still on Python 2.6. |
1d34223 is not sufficient to make defusedxml work properly with Python 3.6. It stops defusedxml outright choking in
_get_py3_cls
, but it doesn't work properly. It results incommon._generate_etree_functions()
failing, as can be seen in the 10 failed tests from the Travis run for that commit.I naively attempted just changing the
if PY26 or PY31:
condition in_generate_etree_functions()
toif PY26 or PY31 or sys.version_info >= (3, 6):
, but that's not good enough either because that code really is tailored to the Python 2.6 / 3.1 implementation; it doesn't work at all for the Python 3.6 implementation. It seems like we need an entirely new approach to defusing iterparse for 3.6, but I'm not smart enough to write that. At least, not at this time in the morning...This is a bit of a problem for us (Fedora) as Python 3.6 landed in Rawhide today, and now defusedxml won't install and can't be rebuilt (unless we ignore the fact that it's broken and disable the tests...), and several things that depend on it can't install or be rebuilt either.
The text was updated successfully, but these errors were encountered: