corrected syntax error in code

master
Самоукин Алексей 14 years ago
parent db889e2982
commit 12ed9defef

@ -2649,7 +2649,7 @@ class profile(_file, _terms, xmlShare):
if flagFoundVar:
# Если переменная существует
if len(terms) == 1:
self.stackGlobalVars.push(str(value))
self.stackGlobalVars.append(str(value))
else:
print _("error in profile %s")%nameProfile
print _("error profile term %s")%str(funTxt)
@ -2664,7 +2664,7 @@ class profile(_file, _terms, xmlShare):
cl_base.exit(1)
elif len(terms) == 2:
value = terms[1].strip()
self.stackGlobalVars.push(str(value))
self.stackGlobalVars.append(str(value))
localVars[nameLocVar] = value
else:
print _("error in profile %s")%nameProfile
@ -2732,7 +2732,7 @@ class profile(_file, _terms, xmlShare):
elif funTxt[:4] == "pop(":
textProfileTmp = funcPop(funTxt,resS,localVars,textProfileTmp)
resS = self._reFunc.search(textProfileTmp)
elif funTxt[:4] == "push(":
elif funTxt[:5] == "push(":
textProfileTmp = funcPush(funTxt,resS,localVars,textProfileTmp)
resS = self._reFunc.search(textProfileTmp)
else:

Loading…
Cancel
Save