diff options
author | Yuanhong Deng <dengyuanhong@chinamobile.com> | 2022-03-24 01:16:20 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2022-03-24 01:16:20 +0000 |
commit | 0e42adb3504e72671cda998e378b703c87c3504d (patch) | |
tree | 14f39afec6ce41dd1e8cc3034e8b112f8c4544b9 /mgr/mgr/samples/views.py | |
parent | f993046d3cdf75f964586e48349733033da50114 (diff) | |
parent | 2128c5d0ca3211f293c1fa20a5768aa671ad9579 (diff) |
Merge "update from python2 to python3"
Diffstat (limited to 'mgr/mgr/samples/views.py')
-rw-r--r-- | mgr/mgr/samples/views.py | 2 |
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) |