From: Tim Vieira Date: Thu, 4 Jul 2013 03:21:50 +0000 (-0400) Subject: minor fix to trace formatting X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=a36c027558c4063dd2a61a3c4964df578cfbdba7;p=dyna2 minor fix to trace formatting --- 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)']]) \ + ['']