Skip to content

Commit 0d1265f

Browse files
committed
Add docstring for clean_code
1 parent 16101ae commit 0d1265f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pynest/nest/server/hl_api_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,7 @@ def error_handler(e):
357357
return jsonify(e.to_dict()), e.status_code
358358

359359

360+
# It comments lines starting with 'import' or 'from' otherwise the line number of error would be wrong.
360361
def clean_code(source):
361362
codes = source.split("\n")
362363
codes_cleaned = [] # noqa

0 commit comments

Comments
 (0)