File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def find(name, return_package=False):
21
21
names = name .split ("." )
22
22
# Look for the first importlib ModuleSpec that has `origin` set, indicating it's not a namespace package.
23
23
for package_name_boundary in range (len (names )):
24
- spec = find_spec ("." .join (names [:package_name_boundary + 1 ]))
24
+ spec = find_spec ("." .join (names [: package_name_boundary + 1 ]))
25
25
if spec is not None and spec .origin is not None :
26
26
break
27
27
@@ -35,7 +35,7 @@ def find(name, return_package=False):
35
35
return spec .origin
36
36
if len (spec .submodule_search_locations ) != 1 :
37
37
raise ArgcompleteMarkerNotFound ("expecting one search location" )
38
- path = os .path .join (spec .submodule_search_locations [0 ], * names [package_name_boundary + 1 :])
38
+ path = os .path .join (spec .submodule_search_locations [0 ], * names [package_name_boundary + 1 :])
39
39
if os .path .isdir (path ):
40
40
filename = "__main__.py"
41
41
if return_package :
You can’t perform that action at this time.
0 commit comments