Colton Leekley-Winslow added the comment:
Patching sys.modules is an idea I got from the official documentation
https://docs.python.org/3/library/unittest.mock.html#patch-dict
http://mock.readthedocs.org/en/latest/patch.html#patch-dict
Colton Leekley-Winslow added the comment:
Also agree setup allowing broken code an be annoying, but it is necessary to
maintain the existing behavior. Maybe we need an additional argument for setup
that will in turn pass doraise to py_compile.compile, but retain the default
behavior in all
Colton Leekley-Winslow added the comment:
I sort of realized, does this mean lxml.etree would now be the offender, for
not following 2.11 and leaving the \r as-is?
--
___
Python tracker
<http://bugs.python.org/issue17
Colton Leekley-Winslow added the comment:
Here is a patch. Please note that in your example \r is replaced by \n per
2.11: http://www.w3.org/TR/REC-xml/#sec-line-ends
Also, the patch is only for ElementTree, I will investigate cElementTree but no
promises.
--
keywords: +patch
nosy
Colton Leekley-Winslow added the comment:
What's the status on this?
--
nosy: +lwcolton
___
Python tracker
<http://bugs.python.org/issue21600>
___
___
Pytho