From 364e171ac4545107a6f070c489d7b9b9eaffb513 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5kon=20H=C3=A6gland?= Date: Wed, 1 Sep 2021 12:44:49 +0200 Subject: [PATCH] Removed check for "yield from". Since the module requires python 3.6 and "yield from" was introduced in 3.3, there is no need for this check. --- ansi2html/converter.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ansi2html/converter.py b/ansi2html/converter.py index c4a9970..66eb2fc 100644 --- a/ansi2html/converter.py +++ b/ansi2html/converter.py @@ -389,13 +389,7 @@ def _osc_link(ansi): if isinstance(part, OSC_Link): yield part else: - if ((sys.version_info.major == 3 and sys.version_info.minor >= 3) - or sys.version_info.major > 3): - # yield from requires python >= 3.3 - yield from self._handle_ansi_code(part, styles_used, state) - else: - for sub_part in self._handle_ansi_code(part, styles_used, state): - yield sub_part + yield from self._handle_ansi_code(part, styles_used, state) if state.inside_span: if self.latex: yield "}"