diff options
| author | Janosch Frank | 2016-01-11 16:17:48 +0100 |
|---|---|---|
| committer | Paolo Bonzini | 2016-01-26 15:58:12 +0100 |
| commit | a90b87bf25d4d96a8c31a78eefe4633a0e9da3ad (patch) | |
| tree | 0395323b9ee4e70bcc3f83e05e0c96f50a4ace84 /scripts/simpletrace.py | |
| parent | scripts/kvm/kvm_stat: Rename _perf_event_open (diff) | |
| download | qemu-a90b87bf25d4d96a8c31a78eefe4633a0e9da3ad.tar.gz qemu-a90b87bf25d4d96a8c31a78eefe4633a0e9da3ad.tar.xz 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/simpletrace.py')
0 files changed, 0 insertions, 0 deletions
