Skip to content

Commit 11a1755

Browse files
committed
Minor typo fix.
1 parent acfff4b commit 11a1755

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

umock.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -365,9 +365,9 @@ def resolve_target(target):
365365
return target
366366
if ":" in target:
367367
# 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(":")
369369
module = __import__(module_name)
370-
parts = attribute.split(".")
370+
parts = attributes.split(".")
371371
else:
372372
# No colon - have to iterate to find the package boundary.
373373
parts = target.split(".")
@@ -376,7 +376,7 @@ def resolve_target(target):
376376
module = __import__(module_name)
377377
while parts:
378378
# Traverse the parts of the target to find the package boundary.
379-
p = parts.pop(0)
379+
p = parts[0]]
380380
new_module_name = f"{module_name}.{p}"
381381
try:
382382
module = __import__(new_module_name)

0 commit comments

Comments
 (0)