diff options
| author | Janosch Frank <frankja@linux.vnet.ibm.com> | 2016-01-11 16:17:48 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-01-26 15:58:12 +0100 |
| commit | a90b87bf25d4d96a8c31a78eefe4633a0e9da3ad (patch) | |
| tree | 0395323b9ee4e70bcc3f83e05e0c96f50a4ace84 /scripts/dump-guest-memory.py | |
| parent | 312bf62b7cb37928ef992518df9a0a5e38a2c69a (diff) | |
| download | focaccia-qemu-a90b87bf25d4d96a8c31a78eefe4633a0e9da3ad.tar.gz focaccia-qemu-a90b87bf25d4d96a8c31a78eefe4633a0e9da3ad.zip | |
scripts/kvm/kvm_stat: Introduce properties for providers
As previous commit authors used a mixture of setters/getters and direct access to class variables consolidating them the python way improved readability. Properties allow us to assign a value to a class variable through a setter without the need to call the setter ourselves. Reviewed-by: Jason J. Herne <jjherne@linux.vnet.ibm.com> Signed-off-by: Janosch Frank <frankja@linux.vnet.ibm.com> Message-Id: <1452525484-32309-19-git-send-email-frankja@linux.vnet.ibm.com> [prop.setter is new in Python 2.6, which is the earliest supported version. - Paolo] Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/dump-guest-memory.py')
0 files changed, 0 insertions, 0 deletions