Skip to content

Commit 8747040

Browse files
committed
Name version of option change in docstring.
1 parent 6c36e6c commit 8747040

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/lxml/iterparse.pxi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ cdef class iterparse:
4646
True for XML, ignored otherwise)
4747
- compact: safe memory for short text content (default: True)
4848
- resolve_entities: replace entities by their text value
49-
(default: 'internal' only)
49+
(default: 'internal' only; True before lxml 6.1)
5050
- huge_tree: disable security restrictions and support very deep trees
5151
and very long text content (only affects libxml2 2.7+)
5252
- html: parse input as HTML (default: XML)

src/lxml/parser.pxi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1727,6 +1727,9 @@ cdef class ETCompatXMLParser(XMLParser):
17271727
17281728
This parser has ``remove_comments`` and ``remove_pis`` enabled by default
17291729
and thus ignores comments and processing instructions.
1730+
1731+
The default value of ``resolve_entities`` used to be True and was changed to
1732+
'internal' in lxml 6.1.
17301733
"""
17311734
def __init__(self, *, encoding=None, attribute_defaults=False,
17321735
dtd_validation=False, load_dtd=False, no_network=True, decompress=False,

0 commit comments

Comments
 (0)