aboutsummaryrefslogtreecommitdiff
path: root/scripts/simpletrace.py
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2020-10-06 19:57:59 -0400
committerJohn Snow <jsnow@redhat.com>2020-10-20 09:37:57 -0400
commitc4e6023f05fe6dd14d9193814679490feac546a4 (patch)
treef4c005962142ee8d8406ac51ace7a53cd8cc9d87 /scripts/simpletrace.py
parent932ca4bbde5ed6c57a8ae0b9cabb6e0a1ca1047a (diff)
downloadqemu-c4e6023f05fe6dd14d9193814679490feac546a4.zip
qemu-c4e6023f05fe6dd14d9193814679490feac546a4.tar.gz
qemu-c4e6023f05fe6dd14d9193814679490feac546a4.tar.bz2
python/machine.py: Fix monitor address typing
Prior to this, it's difficult for mypy to intuit what the concrete type of the monitor address is; it has difficulty inferring the type across two variables. Create _monitor_address as a property that always returns a valid address to simplify static type analysis. To preserve our ability to clean up, use a simple boolean to indicate whether or not we should try to clean up the sock file after execution. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Kevin Wolf <kwolf@redhat.com> Message-id: 20201006235817.3280413-3-jsnow@redhat.com Signed-off-by: John Snow <jsnow@redhat.com>
Diffstat (limited to 'scripts/simpletrace.py')
0 files changed, 0 insertions, 0 deletions