]> git.ipfire.org Git - people/ms/libloc.git/blobdiff - src/python/export.py
Revert "configure: Require Python >= 3.9"
[people/ms/libloc.git] / src / python / export.py
index 3cdece43b0b476606678275508c08911630ac751..13c0540ca5da3498fae113ad7ed4077993824999 100644 (file)
@@ -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",