Renamed cmd.funcparts to cmd.func_parts for naming consistency with other command optionals.
This commit is contained in:
parent
65e370f93b
commit
743edd88ff
1 changed files with 3 additions and 3 deletions
|
|
@ -270,10 +270,10 @@ def cmdhandler(caller, raw_string, testing=False):
|
||||||
# (return value is normally None)
|
# (return value is normally None)
|
||||||
ret = yield cmd.func()
|
ret = yield cmd.func()
|
||||||
|
|
||||||
if hasattr(cmd, "funcparts"):
|
if hasattr(cmd, "func_parts"):
|
||||||
# yield on command parts (for multi-part delayed commands)
|
# yield on command parts (for multi-part delayed commands)
|
||||||
for funcpart in make_iter(cmd.funcparts):
|
for func_part in make_iter(cmd.func_parts):
|
||||||
err = yield funcpart()
|
err = yield func_part()
|
||||||
# returning anything but a deferred/None will kill the chain
|
# returning anything but a deferred/None will kill the chain
|
||||||
if err: break
|
if err: break
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue