python/aqmp: refactor _do_accept() into two distinct steps
commit5e9902a030ab832b0b6577764c65ce6a6f874af6
authorJohn Snow <jsnow@redhat.com>
Fri, 25 Feb 2022 20:59:44 +0000 (25 15:59 -0500)
committerJohn Snow <jsnow@redhat.com>
Mon, 7 Mar 2022 19:36:41 +0000 (7 14:36 -0500)
tree8c9f5d4a513e7cf6e0140c67f01f0b80922c604a
parent1b9c8cb6ce6b5c5911eb715b2d5b0a2671999dde
python/aqmp: refactor _do_accept() into two distinct steps

Refactor _do_accept() into _do_start_server() and _do_accept(). As of
this commit, the former calls the latter, but in subsequent commits
they'll be split apart.

(So please forgive the misnomer for _do_start_server(); it will live up
to its name shortly, and the docstring will be updated then too. I'm
just cutting down on some churn.)

Signed-off-by: John Snow <jsnow@redhat.com>
Acked-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20220225205948.3693480-7-jsnow@redhat.com
Signed-off-by: John Snow <jsnow@redhat.com>
python/qemu/aqmp/protocol.py
python/tests/protocol.py