164
206
def dispatch_command(self, cmd, args):
165
207
"""Deprecated compatibility method.""" # XXX XXX
167
211
command = self._commands.get(cmd)
169
213
raise errors.SmartProtocolError("bad request %r" % (cmd,))
171
215
self._run_handler_code(self._command.execute, args, {})
173
217
def _run_handler_code(self, callable, args, kwargs):