Renamed cmd.funcparts to cmd.func_parts for naming consistency with other command optionals.

This commit is contained in:
Griatch 2013-02-20 00:27:44 +01:00
parent 65e370f93b
commit 743edd88ff

View file

@ -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