From af72fa1cc70ac7bf2ab670415a46d5cd25313aee Mon Sep 17 00:00:00 2001 From: mofanke <54242816+mofanke@users.noreply.github.com> Date: Mon, 23 Nov 2020 14:46:49 +0800 Subject: [PATCH] Update handlers.py Remove or correct this useless self-assignment --- notebook/services/kernelspecs/handlers.py | 1 - 1 file changed, 1 deletion(-) diff --git a/notebook/services/kernelspecs/handlers.py b/notebook/services/kernelspecs/handlers.py index 62a0df6191..a01d307fb2 100644 --- a/notebook/services/kernelspecs/handlers.py +++ b/notebook/services/kernelspecs/handlers.py @@ -27,7 +27,6 @@ def kernelspec_model(handler, name, spec_dict, resource_dir): } # Add resource files if they exist - resource_dir = resource_dir for resource in ['kernel.js', 'kernel.css']: if os.path.exists(pjoin(resource_dir, resource)): d['resources'][resource] = url_path_join(