Skip to content

Commit

Permalink
Python 3.7 compat (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins authored Feb 5, 2023
1 parent 51d82d2 commit be20ec0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion html5tagger/builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ def _clear(self):

@property
def _allpieces(self):
return *self._pieces, self._endtag, *self._stack[::-1]
retval = []
retval.extend(self._pieces)
retval.append(self._endtag)
retval.extend(self._stack[::-1])
return tuple(retval)

def _endtag_close(self):
if self._endtag:
Expand Down

0 comments on commit be20ec0

Please sign in to comment.