File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -365,9 +365,9 @@ def resolve_target(target):
365
365
return target
366
366
if ":" in target :
367
367
# There is a colon - a one-step import is all that's needed.
368
- module_name , attribute = target .split (":" )
368
+ module_name , attributes = target .split (":" )
369
369
module = __import__ (module_name )
370
- parts = attribute .split ("." )
370
+ parts = attributes .split ("." )
371
371
else :
372
372
# No colon - have to iterate to find the package boundary.
373
373
parts = target .split ("." )
@@ -376,7 +376,7 @@ def resolve_target(target):
376
376
module = __import__ (module_name )
377
377
while parts :
378
378
# Traverse the parts of the target to find the package boundary.
379
- p = parts . pop ( 0 )
379
+ p = parts [ 0 ]]
380
380
new_module_name = f"{ module_name } .{ p } "
381
381
try :
382
382
module = __import__ (new_module_name )
You can’t perform that action at this time.
0 commit comments