mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-06 22:14:27 +08:00
Added missing sorted to scandir
This commit is contained in:
@@ -33,7 +33,7 @@ def file_name_completions(inference_state, module_context, start_leaf, string,
|
|||||||
string = to_be_added + string
|
string = to_be_added + string
|
||||||
base_path = os.path.join(inference_state.project._path, string)
|
base_path = os.path.join(inference_state.project._path, string)
|
||||||
try:
|
try:
|
||||||
listed = scandir(base_path)
|
listed = sorted(scandir(base_path), key=lambda e:e.name)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
return
|
return
|
||||||
for entry in listed:
|
for entry in listed:
|
||||||
|
|||||||
Reference in New Issue
Block a user