Skip to content

Commit 9283b10

Browse files
committed
Minor improvements
1 parent 0c2cb69 commit 9283b10

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

selectolax/parser.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ class Node:
268268
def remove(self, recursive: bool = True) -> None:
269269
"""An alias for the decompose method."""
270270
...
271-
def unwrap(self) -> None:
271+
def unwrap(self, delete_empty: bool = False) -> None:
272272
"""Replace node with whatever is inside this node.
273273
274274
Parameters

selectolax/parser.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ cdef class HTMLParser:
128128
PyErr_SetObject(RuntimeError, "Can't parse HTML (status code: %d)" % status)
129129
return -1
130130

131-
if (self.html_tree.node_html == NULL):
131+
if self.html_tree.node_html == NULL:
132132
PyErr_SetObject(RuntimeError, "html_tree is still NULL even after parsing ")
133133
return -1
134134
return 0

0 commit comments

Comments
 (0)