code refactoring regarding standard output suppression and some threading issues

This commit is contained in:
Miroslav Stampar
2010-12-21 14:21:24 +00:00
parent 0e68248f60
commit 385e208f38
8 changed files with 27 additions and 18 deletions

View File

@@ -390,8 +390,7 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse
"""
if suppressOutput:
pushValue(conf.verbose)
conf.verbose = 0
kb.disableStdOut = True
try:
if conf.direct:
@@ -467,7 +466,7 @@ def getValue(expression, blind=True, inband=True, error=True, time=True, fromUse
finally:
if suppressOutput:
conf.verbose = popValue()
kb.disableStdOut = False
if value and expected == EXPECTED.BOOL:
if isinstance(value, basestring):