Skip to content

Commit e11bf14

Browse files
committed
simplify roles usage
1 parent b951065 commit e11bf14

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Doc/library/pyexpat.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ well-known XML vulnerabilities.
251251
near the start of parsing even with benign files in practice. As such, the
252252
upper bound must be carefully chosen so to avoid false positives.
253253

254-
An :exc:`ExpatError` is raised if this method is called by a non-root
255-
parser or if *max_factor* is outside the valid range. The corresponding
256-
:attr:`~.ExpatError.lineno` and :attr:`~.ExpatError.column` should not be
257-
used as they will have no special meaning.
254+
An :exc:`ExpatError` is raised if this method is called on a non-root
255+
parser or if *max_factor* is outside the valid range.
256+
The corresponding :attr:`~ExpatError.lineno` and :attr:`~ExpatError.offset`
257+
should not be used as they may have no special meaning.
258258

259259
.. note::
260260

@@ -271,9 +271,9 @@ well-known XML vulnerabilities.
271271
By default, parsers objects have an allocation activation threshold of 64 MiB,
272272
or equivalently 67,108,864 bytes.
273273

274-
An :exc:`ExpatError` is raised if this method is called by a non-root parser.
275-
The corresponding :attr:`~.ExpatError.lineno` and :attr:`~.ExpatError.column`
276-
should not be used as they will have no special meaning.
274+
An :exc:`ExpatError` is raised if this method is called on a non-root parser.
275+
The corresponding :attr:`~ExpatError.lineno` and :attr:`~ExpatError.offset`
276+
should not be used as they may have no special meaning.
277277

278278
.. versionadded:: next
279279

0 commit comments

Comments
 (0)