]> git.proxmox.com Git - mirror_frr.git/commitdiff
python: Make FRR build compatible with python 2.7 and 3.x
authorMartin Winter <mwinter@opensourcerouting.org>
Wed, 19 Aug 2020 17:14:29 +0000 (19:14 +0200)
committerMartin Winter <mwinter@opensourcerouting.org>
Wed, 19 Aug 2020 17:38:28 +0000 (19:38 +0200)
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
python/makevars.py

index 1a85fbd6f5a9e735324b0cfaf1a36cc72993fdd2..63bf8c5eeb3b0e773ec42432d48635f2f6b99cd4 100644 (file)
@@ -70,7 +70,7 @@ class MakeReVars(MakeVarsBase):
     repl_re = re.compile(r'\$(?:([A-Za-z])|\(([^\)]+)\))')
 
     def __init__(self, maketext):
-        super().__init__()
+        super(MakeReVars, self).__init__()
         self._vars = dict(self.var_re.findall(maketext.replace('\\\n', '')))
 
     def replacevar(self, match):