From be20ec0d376eabdf0718dac6436824d9784dbaa5 Mon Sep 17 00:00:00 2001 From: Adam Hopkins Date: Sun, 5 Feb 2023 14:52:06 +0200 Subject: [PATCH] Python 3.7 compat (#1) --- html5tagger/builder.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/html5tagger/builder.py b/html5tagger/builder.py index 7180b06..ee76d3b 100644 --- a/html5tagger/builder.py +++ b/html5tagger/builder.py @@ -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: