From a36c027558c4063dd2a61a3c4964df578cfbdba7 Mon Sep 17 00:00:00 2001 From: Tim Vieira Date: Wed, 3 Jul 2013 23:21:50 -0400 Subject: [PATCH] minor fix to trace formatting --- src/Dyna/Backend/Python/post/trace.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dyna/Backend/Python/post/trace.py b/src/Dyna/Backend/Python/post/trace.py index 67be4cc..e007979 100644 --- a/src/Dyna/Backend/Python/post/trace.py +++ b/src/Dyna/Backend/Python/post/trace.py @@ -58,13 +58,13 @@ def groupby(key, data): def dig(head, visited, tail, groups, interp): if head in tail: - return ['%s = %s' % (yellow % head, head.value)] \ + return ['%s = %s' % (yellow % head, _repr(head.value))] \ + ['|'] \ + branch([[red % 'continue as before (cyclic structure, will continue forever)']]) \ + [''] if head in visited: - return ['%s = %s' % (yellow % head, head.value)] \ + return ['%s = %s' % (yellow % head, _repr(head.value))] \ + ['|'] \ + branch([[red % 'continue as before (shared structure)']]) \ + [''] -- 2.50.1