|
@@ -95,7 +95,7 @@ def _goto_mode(new_mode, model_name=None):
|
|
|
|
|
|
def _input(value):
|
|
|
# Ugly json encoding of primitives
|
|
|
- print("[IN] %s" % value)
|
|
|
+ #print("[IN] %s" % value)
|
|
|
if isinstance(value, type([])):
|
|
|
value = json.dumps(value)
|
|
|
urllib2.urlopen(urllib2.Request(address, urllib.urlencode({"op": "set_input", "data": value, "taskname": taskname}))).read()
|
|
@@ -145,7 +145,7 @@ def _output(expected=None):
|
|
|
try:
|
|
|
global last_output
|
|
|
last_output = json.loads(urllib2.urlopen(urllib2.Request(address, urllib.urlencode({"op": "get_output", "taskname": taskname}))).read())
|
|
|
- print("[OUT] %s" % last_output)
|
|
|
+ #print("[OUT] %s" % last_output)
|
|
|
except:
|
|
|
raise UnknownError()
|
|
|
if expected is not None and last_output != expected:
|