rebuild for 10.11+
This commit is contained in:
parent
d989eff547
commit
901b731582
234 changed files with 1522 additions and 927 deletions
|
|
@ -1,3 +1,7 @@
|
|||
# cython: language_level=3
|
||||
|
||||
from __future__ import absolute_import
|
||||
|
||||
import difflib
|
||||
from lxml import etree
|
||||
from lxml.html import fragment_fromstring
|
||||
|
|
@ -621,7 +625,7 @@ def fixup_chunks(chunks):
|
|||
% (cur_word, result, chunk, chunks))
|
||||
cur_word.post_tags.append(chunk)
|
||||
else:
|
||||
assert(0)
|
||||
assert False
|
||||
|
||||
if not result:
|
||||
return [token('', pre_tags=tag_accum)]
|
||||
|
|
@ -799,7 +803,6 @@ def _move_el_inside_block(el, tag):
|
|||
if _contains_block_level_tag(child):
|
||||
break
|
||||
else:
|
||||
import sys
|
||||
# No block-level tags in any child
|
||||
children_tag = etree.Element(tag)
|
||||
children_tag.text = el.text
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue