From 90dadf3c0c750444bc8fe652bc54fda20c43c94b Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Wed, 13 May 2015 15:30:22 +0200 Subject: Print 'true' on success with no bindings --- prolog/engine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prolog/engine.py b/prolog/engine.py index b3cd805..c0fd58c 100644 --- a/prolog/engine.py +++ b/prolog/engine.py @@ -115,7 +115,7 @@ def pretty_vars(data): result.append(' = '.join(var_list) + ' = ' + strip_html(value)) if 'residuals' in data: result += [strip_html(b) for b in data['residuals']] - return ',\n'.join(result) + return ',\n'.join(result) if result else 'true' # Basic sanity check. if __name__ == '__main__': -- cgit v1.2.1