update (smaller memory footprint in postprocessing phase because of safecharencode part)

This commit is contained in:
Miroslav Stampar
2011-07-25 20:40:31 +00:00
parent 5770c08784
commit 6bbb8139a0
5 changed files with 8 additions and 6 deletions

View File

@@ -28,7 +28,6 @@ from lib.core.common import randomInt
from lib.core.common import readInput
from lib.core.common import replaceNewlineTabs
from lib.core.common import safeStringFormat
from lib.core.convert import safecharencode
from lib.core.data import conf
from lib.core.data import kb
from lib.core.data import logger
@@ -401,6 +400,8 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse
(if selected).
"""
kb.safeCharEncode = safeCharEncode
if suppressOutput is not None:
pushValue(getCurrentThreadData().disableStdOut)
getCurrentThreadData().disableStdOut = suppressOutput
@@ -499,8 +500,7 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse
elif value == [None]:
value = None
if safeCharEncode:
value = safecharencode(value)
kb.safeCharEncode = False
return value