We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c2cb69 commit 9283b10Copy full SHA for 9283b10
2 files changed
selectolax/parser.pyi
@@ -268,7 +268,7 @@ class Node:
268
def remove(self, recursive: bool = True) -> None:
269
"""An alias for the decompose method."""
270
...
271
- def unwrap(self) -> None:
+ def unwrap(self, delete_empty: bool = False) -> None:
272
"""Replace node with whatever is inside this node.
273
274
Parameters
selectolax/parser.pyx
@@ -128,7 +128,7 @@ cdef class HTMLParser:
128
PyErr_SetObject(RuntimeError, "Can't parse HTML (status code: %d)" % status)
129
return -1
130
131
- if (self.html_tree.node_html == NULL):
+ if self.html_tree.node_html == NULL:
132
PyErr_SetObject(RuntimeError, "html_tree is still NULL even after parsing ")
133
134
return 0
0 commit comments