summaryrefslogtreecommitdiffstats
path: root/mgr/mgr/samples/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'mgr/mgr/samples/views.py')
-rw-r--r--mgr/mgr/samples/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mgr/mgr/samples/views.py b/mgr/mgr/samples/views.py
index 5a56260..ef71984 100644
--- a/mgr/mgr/samples/views.py
+++ b/mgr/mgr/samples/views.py
@@ -79,7 +79,7 @@ def stub(request, *args, **kwargs):
re_match = uri_re.match(request.path)
if not re_match:
continue
- for k, v in re_match.groupdict().items():
+ for k, v in list(re_match.groupdict().items()):
data = data.replace('<%s>' % k, v)
return Response(data=json.loads(data), status=code)
return Response(data={"stub": "stub"}, status=status.HTTP_200_OK)