From 555ba070adb5711eb3eda241c4e41321a7e5f705 Mon Sep 17 00:00:00 2001 From: ziirish Date: Sun, 6 Nov 2022 21:35:17 +0100 Subject: [PATCH] fix: minor compatibility issue with latest python versions --- burpui/api/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/burpui/api/client.py b/burpui/api/client.py index 7303ae69..708a4f27 100644 --- a/burpui/api/client.py +++ b/burpui/api/client.py @@ -432,7 +432,8 @@ class ClientTreeAll(Resource): redo = True while redo: redo = False - for key, entry in tree.items().copy(): + # using a copy + for key, entry in dict(tree).items(): parent = entry["parent"] if not entry["children"]: entry["children"] = None