Merge pull request #6953 from opensourcerouting/74_fix_python27_build

[7.4] python: Make FRR build compatible with python 2.7 and 3.x
This commit is contained in:
Donatas Abraitis 2020-08-22 22:07:28 +03:00 committed by GitHub
commit e655bb7198
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):