Skip to content

Commit f5a4110

Browse files
committed
style check
1 parent fbf9b60 commit f5a4110

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

debug_toolbar/utils.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,20 @@ def getframeinfo(frame, context=1):
210210
return (filename, lineno, frame.f_code.co_name, lines, index)
211211

212212

213+
def get_sorted_request_variable(variable):
214+
"""
215+
Get a sorted list of variables from the request data.
216+
"""
217+
if isinstance(variable, dict):
218+
return [
219+
(k, variable.get(k)) for k in sorted(variable)
220+
]
221+
else:
222+
return [
223+
(k, variable.getlist(k)) for k in sorted(variable)
224+
]
225+
226+
213227
def get_stack(context=1):
214228
"""
215229
Get a list of records for a frame and all higher (calling) frames.
@@ -255,17 +269,3 @@ def clear_collection(self, thread=None):
255269

256270
def collect(self, item, thread=None):
257271
self.get_collection(thread).append(item)
258-
259-
260-
def get_sorted_request_variable(variable):
261-
"""
262-
Get a sorted list of variables from the request data.
263-
"""
264-
if isinstance(variable, dict):
265-
return [
266-
(k, variable.get(k)) for k in sorted(variable)
267-
]
268-
else:
269-
return [
270-
(k, variable.getlist(k)) for k in sorted(variable)
271-
]

0 commit comments

Comments
 (0)