Commit 1cd4ddbc authored by Michael Tremer's avatar Michael Tremer

Revert "configure: Require Python >= 3.9"

This reverts commit 643b8d06.
Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 81ec8774
......@@ -154,7 +154,7 @@ AM_CONDITIONAL(HAVE_SYSTEMD, [test "x$have_systemd" = "xyes"])
# ------------------------------------------------------------------------------
# Python
AM_PATH_PYTHON([3.9])
AM_PATH_PYTHON([3.4])
PKG_CHECK_MODULES([PYTHON], [python-${PYTHON_VERSION}])
# Perl
......
......@@ -17,7 +17,6 @@
# #
###############################################################################
import functools
import io
import ipaddress
import logging
......@@ -59,6 +58,9 @@ class OutputWriter(object):
else:
self.f = io.StringIO()
# Tag
self.tag = self._make_tag()
# Call any custom initialization
self.init()
......@@ -74,8 +76,7 @@ class OutputWriter(object):
def __repr__(self):
return "<%s %s f=%s>" % (self.__class__.__name__, self, self.f)
@functools.cached_property
def tag(self):
def _make_tag(self):
families = {
socket.AF_INET6 : "6",
socket.AF_INET : "4",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment