@@ -1027,13 +1027,14 @@ pyexpat.xmlparser.GetInputContext |
1027 | 1027 |
|
1028 | 1028 | Return the untranslated text of the input that caused the current event. |
1029 | 1029 |
|
1030 | | -If the event was generated by a large amount of text (such as a start tag |
1031 | | -for an element with many attributes), not all of the text may be available. |
| 1030 | +If the event was generated by a large amount of text (such as |
| 1031 | +a start tag for an element with many attributes), not all of the |
| 1032 | +text may be available. |
1032 | 1033 | [clinic start generated code]*/ |
1033 | 1034 |
|
1034 | 1035 | static PyObject * |
1035 | 1036 | pyexpat_xmlparser_GetInputContext_impl(xmlparseobject *self) |
1036 | | -/*[clinic end generated code: output=a88026d683fc22cc input=034df8712db68379]*/ |
| 1037 | +/*[clinic end generated code: output=a88026d683fc22cc input=3ff7cb00783c8f98]*/ |
1037 | 1038 | { |
1038 | 1039 | if (self->in_callback) { |
1039 | 1040 | int offset, size; |
@@ -1165,15 +1166,16 @@ pyexpat.xmlparser.UseForeignDTD |
1165 | 1166 |
|
1166 | 1167 | Allows the application to provide an artificial external subset if one is not specified as part of the document instance. |
1167 | 1168 |
|
1168 | | -This readily allows the use of a 'default' document type controlled by the |
1169 | | -application, while still getting the advantage of providing document type |
1170 | | -information to the parser. 'flag' defaults to True if not provided. |
| 1169 | +This readily allows the use of a 'default' document type controlled |
| 1170 | +by the application, while still getting the advantage of providing |
| 1171 | +document type information to the parser. 'flag' defaults to True if |
| 1172 | +not provided. |
1171 | 1173 | [clinic start generated code]*/ |
1172 | 1174 |
|
1173 | 1175 | static PyObject * |
1174 | 1176 | pyexpat_xmlparser_UseForeignDTD_impl(xmlparseobject *self, PyTypeObject *cls, |
1175 | 1177 | int flag) |
1176 | | -/*[clinic end generated code: output=d7d98252bd25a20f input=23440ecb0573fb29]*/ |
| 1178 | +/*[clinic end generated code: output=d7d98252bd25a20f input=0387bce44fd53d99]*/ |
1177 | 1179 | { |
1178 | 1180 | pyexpat_state *state = PyType_GetModuleState(cls); |
1179 | 1181 | enum XML_Error rc; |
@@ -1240,14 +1242,15 @@ pyexpat.xmlparser.SetAllocTrackerActivationThreshold |
1240 | 1242 |
|
1241 | 1243 | Sets the number of allocated bytes of dynamic memory needed to activate protection against disproportionate use of RAM. |
1242 | 1244 |
|
1243 | | -By default, parser objects have an allocation activation threshold of 64 MiB. |
| 1245 | +By default, parser objects have an allocation activation threshold of |
| 1246 | +64 MiB. |
1244 | 1247 | [clinic start generated code]*/ |
1245 | 1248 |
|
1246 | 1249 | static PyObject * |
1247 | 1250 | pyexpat_xmlparser_SetAllocTrackerActivationThreshold_impl(xmlparseobject *self, |
1248 | 1251 | PyTypeObject *cls, |
1249 | 1252 | unsigned long long threshold) |
1250 | | -/*[clinic end generated code: output=bed7e93207ba08c5 input=9c706b75c18e4ea1]*/ |
| 1253 | +/*[clinic end generated code: output=bed7e93207ba08c5 input=a96541ba5ea46747]*/ |
1251 | 1254 | { |
1252 | 1255 | return set_activation_threshold( |
1253 | 1256 | self, cls, threshold, |
@@ -1266,24 +1269,25 @@ pyexpat.xmlparser.SetAllocTrackerMaximumAmplification |
1266 | 1269 |
|
1267 | 1270 | Sets the maximum amplification factor between direct input and bytes of dynamic memory allocated. |
1268 | 1271 |
|
1269 | | -The amplification factor is calculated as "allocated / direct" while parsing, |
1270 | | -where "direct" is the number of bytes read from the primary document in parsing |
1271 | | -and "allocated" is the number of bytes of dynamic memory allocated in the parser |
1272 | | -hierarchy. |
| 1272 | +The amplification factor is calculated as "allocated / direct" while |
| 1273 | +parsing, where "direct" is the number of bytes read from the primary |
| 1274 | +document in parsing and "allocated" is the number of bytes of |
| 1275 | +dynamic memory allocated in the parser hierarchy. |
1273 | 1276 |
|
1274 | | -The 'max_factor' value must be a non-NaN floating point value greater than |
1275 | | -or equal to 1.0. Amplification factors greater than 100.0 can be observed |
1276 | | -near the start of parsing even with benign files in practice. In particular, |
1277 | | -the activation threshold should be carefully chosen to avoid false positives. |
| 1277 | +The 'max_factor' value must be a non-NaN floating point value |
| 1278 | +greater than or equal to 1.0. Amplification factors greater than |
| 1279 | +100.0 can be observed near the start of parsing even with benign |
| 1280 | +files in practice. In particular, the activation threshold should |
| 1281 | +be carefully chosen to avoid false positives. |
1278 | 1282 |
|
1279 | | -By default, parser objects have a maximum amplification factor of 100.0. |
| 1283 | +By default, parser objects have a maximum amplification factor of 100. |
1280 | 1284 | [clinic start generated code]*/ |
1281 | 1285 |
|
1282 | 1286 | static PyObject * |
1283 | 1287 | pyexpat_xmlparser_SetAllocTrackerMaximumAmplification_impl(xmlparseobject *self, |
1284 | 1288 | PyTypeObject *cls, |
1285 | 1289 | float max_factor) |
1286 | | -/*[clinic end generated code: output=6e44bd48c9b112a0 input=918b9266b490a722]*/ |
| 1290 | +/*[clinic end generated code: output=6e44bd48c9b112a0 input=9cd13e3ea845dbb4]*/ |
1287 | 1291 | { |
1288 | 1292 | return set_maximum_amplification( |
1289 | 1293 | self, cls, max_factor, |
|