Pārlūkot izejas kodu

Fix signals getting stuck inside the C tokenizer (#206)

tags/v0.5.2
Ben Kurtovic pirms 6 gadiem
vecāks
revīzija
6de7d41733
3 mainītis faili ar 7 papildinājumiem un 0 dzēšanām
  1. +2
    -0
      CHANGELOG
  2. +3
    -0
      docs/changelog.rst
  3. +2
    -0
      mwparserfromhell/parser/ctokenizer/tok_parse.c

+ 2
- 0
CHANGELOG Parādīt failu

@@ -1,6 +1,8 @@
v0.6 (unreleased):

- Dropped support for end-of-life Python versions 2.6, 3.2, 3.3. (#199, #204)
- Fixed signals getting stuck inside the C tokenizer until parsing finishes,
in pathological cases. (#206)
- Fixed <wbr> not being considered a single-only tag. (#200)

v0.5.1 (released March 3, 2018):


+ 3
- 0
docs/changelog.rst Parādīt failu

@@ -10,6 +10,9 @@ Unreleased
- Dropped support for end-of-life Python versions 2.6, 3.2, 3.3.
(`#199 <https://github.com/earwig/mwparserfromhell/issues/199>`,
`#204 <https://github.com/earwig/mwparserfromhell/pull/204>`)
- Fixed signals getting stuck inside the C tokenizer until parsing finishes,
in pathological cases.
(`#206 <https://github.com/earwig/mwparserfromhell/issues/206>`)
- Fixed `<wbr>` not being considered a single-only tag.
(`#200 <https://github.com/earwig/mwparserfromhell/pull/200>`)



+ 2
- 0
mwparserfromhell/parser/ctokenizer/tok_parse.c Parādīt failu

@@ -2603,6 +2603,8 @@ PyObject* Tokenizer_parse(Tokenizer* self, uint64_t context, int push)
}
if (!this)
return Tokenizer_handle_end(self, this_context);
if (PyErr_CheckSignals())
return NULL;
next = Tokenizer_read(self, 1);
last = Tokenizer_read_backwards(self, 1);
if (this == next && next == '{') {


Notiek ielāde…
Atcelt
Saglabāt