Skip to content
Snippets Groups Projects
Commit 4e8fda51 authored by Stuart D. Gathman's avatar Stuart D. Gathman
Browse files

Fix getsymval for python3

parent 2194d8fd
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,10 @@ class TestBase(object): ...@@ -63,7 +63,10 @@ class TestBase(object):
syms = self._symlist[stage] syms = self._symlist[stage]
if syms is not None and name not in syms: if syms is not None and name not in syms:
return None return None
return self._macros.get(name,None) r = self._macros.get(name,None)
if r is not None:
return r.decode()
return r
def replacebody(self,chunk): def replacebody(self,chunk):
if self._body: if self._body:
......
...@@ -65,8 +65,11 @@ class TestCtx(object): ...@@ -65,8 +65,11 @@ class TestCtx(object):
if stage >= 0: if stage >= 0:
syms = self._symlist[stage] syms = self._symlist[stage]
if syms is not None and name not in syms: if syms is not None and name not in syms:
return syms return None
return self._macros.get(name,'notfound') r = self._macros.get(name,None)
if r is not None:
return r.decode()
return r
def _setsymval(self,name,val): def _setsymval(self,name,val):
self._macros[name] = val self._macros[name] = val
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment