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"]) ...@@ -154,7 +154,7 @@ AM_CONDITIONAL(HAVE_SYSTEMD, [test "x$have_systemd" = "xyes"])
# ------------------------------------------------------------------------------ # ------------------------------------------------------------------------------
# Python # Python
AM_PATH_PYTHON([3.9]) AM_PATH_PYTHON([3.4])
PKG_CHECK_MODULES([PYTHON], [python-${PYTHON_VERSION}]) PKG_CHECK_MODULES([PYTHON], [python-${PYTHON_VERSION}])
# Perl # Perl
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
# # # #
############################################################################### ###############################################################################
import functools
import io import io
import ipaddress import ipaddress
import logging import logging
...@@ -59,6 +58,9 @@ class OutputWriter(object): ...@@ -59,6 +58,9 @@ class OutputWriter(object):
else: else:
self.f = io.StringIO() self.f = io.StringIO()
# Tag
self.tag = self._make_tag()
# Call any custom initialization # Call any custom initialization
self.init() self.init()
...@@ -74,8 +76,7 @@ class OutputWriter(object): ...@@ -74,8 +76,7 @@ class OutputWriter(object):
def __repr__(self): def __repr__(self):
return "<%s %s f=%s>" % (self.__class__.__name__, self, self.f) return "<%s %s f=%s>" % (self.__class__.__name__, self, self.f)
@functools.cached_property def _make_tag(self):
def tag(self):
families = { families = {
socket.AF_INET6 : "6", socket.AF_INET6 : "6",
socket.AF_INET : "4", 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