From b5104b173819790d46655b01707f56f6ca22a267 Mon Sep 17 00:00:00 2001 From: sheng <625171796@qq.com> Date: Tue, 19 Sep 2023 09:46:17 +0800 Subject: [PATCH] remove needless deepcopy --- lyrebird/mock/blueprints/apis/flow.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lyrebird/mock/blueprints/apis/flow.py b/lyrebird/mock/blueprints/apis/flow.py index d4e6b9d39..740c36694 100644 --- a/lyrebird/mock/blueprints/apis/flow.py +++ b/lyrebird/mock/blueprints/apis/flow.py @@ -31,11 +31,10 @@ def get(self, id): # Import decoder for decoding the requested content display_item = {} if is_origin: - display_item.update(item) + display_item = deepcopy(item) else: application.encoders_decoders.decoder_handler(item, output=display_item) if not no_decode: - display_item['request'] = deepcopy(display_item['request']) for key in ('url', 'path', 'query'): url_decode(display_item['request'], key) return application.make_ok_response(data=display_item)