Merge pull request #6952 from opensourcerouting/fix_python27_build

python: Make FRR build compatible with python 2.7 and 3.x
This commit is contained in:
Donatas Abraitis 2020-08-22 22:07:18 +03:00 committed by GitHub
commit 474d46ed73
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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):