From 96d92aa9b134491ecb505395135505b403f54654 Mon Sep 17 00:00:00 2001 From: Timal Date: Tue, 5 Jul 2011 00:49:47 -0700 Subject: [PATCH] Fixed opened issue #16 --- debug_toolbar/panels/sql.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/debug_toolbar/panels/sql.py b/debug_toolbar/panels/sql.py index ff63b6f6b..601d08012 100644 --- a/debug_toolbar/panels/sql.py +++ b/debug_toolbar/panels/sql.py @@ -1,3 +1,4 @@ +import os import re import uuid @@ -191,7 +192,7 @@ def content(self): stacktrace = [] for frame in query['stacktrace']: - params = map(escape, frame[0].rsplit('/', 1) + list(frame[1:])) + params = map(escape, frame[0].rsplit(os.path.sep, 1) + list(frame[1:])) stacktrace.append('{0}/{1} in {3}({2})\n {4}"'.format(*params)) query['stacktrace'] = mark_safe('\n'.join(stacktrace)) i += 1