Skip to content

Commit

Permalink
Use get_nowait instead of get (#253)
Browse files Browse the repository at this point in the history
  • Loading branch information
tushuhei authored Aug 17, 2023
1 parent a38f629 commit 81a4827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion budoux/html_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def handle_starttag(self, tag: str, attrs: HTMLAttr) -> None:

def handle_endtag(self, tag: str) -> None:
self.output += '</%s>' % (tag)
self.to_skip = self.element_stack.get(block=False)
self.to_skip = self.element_stack.get_nowait()

def handle_data(self, data: str) -> None:
for char in data:
Expand Down

0 comments on commit 81a4827

Please sign in to comment.