From 186fcb318a87e6e89add597b8dc2d8443a765bc8 Mon Sep 17 00:00:00 2001
From: Aymeric Augustin
Date: Fri, 18 Oct 2013 17:01:52 +0200
Subject: Ensure the toolbar only outputs valid XML.
This allows using it in websites served with the application/xml+xhtml
mime type. Fix #221.
---
debug_toolbar/utils/sql.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'debug_toolbar/utils')
diff --git a/debug_toolbar/utils/sql.py b/debug_toolbar/utils/sql.py
index 4e0d70d..2810699 100644
--- a/debug_toolbar/utils/sql.py
+++ b/debug_toolbar/utils/sql.py
@@ -29,5 +29,5 @@ def reformat_sql(sql):
def swap_fields(sql):
- return re.sub('SELECT (.*?) FROM', 'SELECT ••• ' +
+ return re.sub('SELECT (.*?) FROM', 'SELECT ••• ' +
'\g<1> FROM', sql)
--
cgit v1.2.3