@@ -11,7 +11,7 @@ msgid ""
1111msgstr ""
1212"Project-Id-Version : Python 3.12\n "
1313"Report-Msgid-Bugs-To : \n "
14- "POT-Creation-Date : 2025-12-07 15:45 +0000\n "
14+ "POT-Creation-Date : 2025-12-17 16:12 +0000\n "
1515"PO-Revision-Date : 2025-07-18 19:58+0000\n "
1616"Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n "
1717"Language-Team : Polish (https://app.transifex.com/python-doc/teams/5390/pl/)\n "
@@ -76,6 +76,13 @@ msgid ""
7676"implicit or explicit encoding of the document."
7777msgstr ""
7878
79+ msgid ""
80+ "Parsers created through :func:`!ParserCreate` are called \" root\" parsers, "
81+ "in the sense that they do not have any parent parser attached. Non-root "
82+ "parsers are created by :meth:`parser.ExternalEntityParserCreate <xmlparser."
83+ "ExternalEntityParserCreate>`."
84+ msgstr ""
85+
7986msgid ""
8087"Expat can optionally do XML namespace processing for you, enabled by "
8188"providing a value for *namespace_separator*. The value must be a one-"
@@ -237,6 +244,62 @@ msgid ""
237244"parser instance."
238245msgstr ""
239246
247+ msgid ""
248+ ":class:`!xmlparser` objects have the following methods to mitigate some "
249+ "common XML vulnerabilities."
250+ msgstr ""
251+
252+ msgid ""
253+ "Sets the number of allocated bytes of dynamic memory needed to activate "
254+ "protection against disproportionate use of RAM."
255+ msgstr ""
256+
257+ msgid ""
258+ "By default, parser objects have an allocation activation threshold of 64 "
259+ "MiB, or equivalently 67,108,864 bytes."
260+ msgstr ""
261+
262+ msgid ""
263+ "An :exc:`ExpatError` is raised if this method is called on a |xml-non-root-"
264+ "parser| parser. The corresponding :attr:`~ExpatError.lineno` and :attr:"
265+ "`~ExpatError.offset` should not be used as they may have no special meaning."
266+ msgstr ""
267+
268+ msgid ""
269+ "Sets the maximum amplification factor between direct input and bytes of "
270+ "dynamic memory allocated."
271+ msgstr ""
272+
273+ msgid ""
274+ "The amplification factor is calculated as ``allocated / direct`` while "
275+ "parsing, where ``direct`` is the number of bytes read from the primary "
276+ "document in parsing and ``allocated`` is the number of bytes of dynamic "
277+ "memory allocated in the parser hierarchy."
278+ msgstr ""
279+
280+ msgid ""
281+ "The *max_factor* value must be a non-NaN :class:`float` value greater than "
282+ "or equal to 1.0. Amplification factors greater than 100.0 can be observed "
283+ "near the start of parsing even with benign files in practice. In particular, "
284+ "the activation threshold should be carefully chosen to avoid false positives."
285+ msgstr ""
286+
287+ msgid ""
288+ "By default, parser objects have a maximum amplification factor of 100.0."
289+ msgstr ""
290+
291+ msgid ""
292+ "An :exc:`ExpatError` is raised if this method is called on a |xml-non-root-"
293+ "parser| parser or if *max_factor* is outside the valid range. The "
294+ "corresponding :attr:`~ExpatError.lineno` and :attr:`~ExpatError.offset` "
295+ "should not be used as they may have no special meaning."
296+ msgstr ""
297+
298+ msgid ""
299+ "The maximum amplification factor is only considered if the threshold that "
300+ "can be adjusted by :meth:`.SetAllocTrackerActivationThreshold` is exceeded."
301+ msgstr ""
302+
240303msgid ":class:`xmlparser` objects have the following attributes:"
241304msgstr ""
242305
0 commit comments