XSLTAccessControl.__repr__ fails with AttributeError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
Fix Released
|
Low
|
scoder |
Bug Description
To reproduce the bug:
>>> from lxml.etree import XSLTAccessControl
>>> repr(XSLTAccess
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "xslt.pxi", line 250, in lxml.etree.
AttributeError: 'dict_items' object has no attribute 'sort'
This is a problem, because the PyCharm IDE tries to instrospect the lxml package in order to assist with its public API, but due to the repr bug it is unable to do so.
Python : sys.version_
lxml.etree : (3, 2, 3, 0)
libxml used : (2, 9, 0)
libxml compiled : (2, 9, 0)
libxslt used : (1, 1, 27)
libxslt compiled : (1, 1, 27)
Thanks for the report. That's a typical Py3-only bug.
https:/ /github. com/lxml/ lxml/commit/ 7e50505d398c685 d7c21934fcc5af8 ed51f2a4d6