Commit f64e770c authored by Samuel GAIST's avatar Samuel GAIST
Browse files

[databases] Fix print statements

parent 3ccd2569
......@@ -582,7 +582,7 @@ def view_outputs(configuration, dataset_name, excluded_outputs=None, uid=None,
if start != previous_start:
print(80 * '-')
print 'FROM %d TO %d' % (start, end)
print('FROM %d TO %d' % (start, end))
whole_inputs = [input_ for input_ in input_group
if input_.data_index == start and
......@@ -590,7 +590,7 @@ def view_outputs(configuration, dataset_name, excluded_outputs=None, uid=None,
for input in whole_inputs:
label = ' - ' + str(input.name) + ': '
print label + data_to_json(input.data, len(label))
print(label + data_to_json(input.data, len(label)))
previous_start = start
......@@ -612,11 +612,11 @@ def view_outputs(configuration, dataset_name, excluded_outputs=None, uid=None,
for key in sorted_keys:
print
print ' FROM %d TO %d' % key
print(' FROM %d TO %d' % key)
for input in grouped_inputs[key]:
label = ' - ' + str(input.name) + ': '
print label + data_to_json(input.data, len(label))
print(label + data_to_json(input.data, len(label)))
except Exception as e:
logger.error("Failed to retrieve the next data: %s", e)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment