Update handlers.py

Remove or correct this useless self-assignment
This commit is contained in:
mofanke 2020-11-23 14:46:49 +08:00 committed by GitHub
parent 32bd47068b
commit af72fa1cc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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(