Fixed typo - else -> elif

Jonathan Frederic 12 years ago
parent 046280b51a
commit d7b86104b8

@ -66,7 +66,7 @@ class CallbackDispatcher(LoggingConfigurable):
# (Un)Register the callback.
if remove and callback in callback_list:
callback_list.remove(callback)
else not remove and callback not in callback_list:
elif not remove and callback not in callback_list:
callback_list.append(callback)
def _validate_nargs(self, nargs):

Loading…
Cancel
Save