From 92f767b05e7ccda6d62190fb6aa425557240dcff Mon Sep 17 00:00:00 2001 From: Andi Albrecht Date: Wed, 25 Aug 2010 09:52:50 +0200 Subject: Use parenthesis as intended (fixes an TypeError). --- extras/appengine/sqlformat/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'extras/appengine/sqlformat') diff --git a/extras/appengine/sqlformat/views.py b/extras/appengine/sqlformat/views.py index c2bea11..806496f 100644 --- a/extras/appengine/sqlformat/views.py +++ b/extras/appengine/sqlformat/views.py @@ -170,7 +170,7 @@ def index(request): data['errors'] = str(form.errors) data['output'] = output logging.info('%r', proc_time) - data['proc_time'] = '%.3f' % proc_time or 0.0 + data['proc_time'] = '%.3f' % (proc_time or 0.0) data = json.dumps(data) return HttpResponse(data, content_type='text/x-json') elif request.POST.get('format', None) == 'text': -- cgit v1.2.1