Fix getsymval for python3

This commit is contained in:
Stuart D. Gathman
2018-12-23 23:16:42 -05:00
parent 2194d8fd96
commit 4e8fda517c
2 changed files with 9 additions and 3 deletions
+5 -2
View File
@@ -65,8 +65,11 @@ class TestCtx(object):
if stage >= 0:
syms = self._symlist[stage]
if syms is not None and name not in syms:
return syms
return self._macros.get(name,'notfound')
return None
r = self._macros.get(name,None)
if r is not None:
return r.decode()
return r
def _setsymval(self,name,val):
self._macros[name] = val