From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Enthus Subject: [PATCH] KVM-test: kvm.py: Code style fix Date: Tue, 8 Jun 2010 16:02:24 +0800 Message-ID: <20100608080224.GA20396@t4.rh> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org To: lmr@redhat.com, mgoldish@redhat.com, autotest@test.kernel.org Return-path: Received: from mail-vw0-f46.google.com ([209.85.212.46]:37020 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751380Ab0FHIC0 (ORCPT ); Tue, 8 Jun 2010 04:02:26 -0400 Received: by vws17 with SMTP id 17so1178809vws.19 for ; Tue, 08 Jun 2010 01:02:25 -0700 (PDT) Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: From: Marc Enthus According to autotest coding style and http://www.python.org/dev/peps/pep-0008/ use if pa_type is not None: instead of if pa_type: Signed-off-by: Marc Enthus --- client/tests/kvm/kvm_vm.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py index f3ce4d6..0080b15 100755 --- a/client/tests/kvm/kvm_vm.py +++ b/client/tests/kvm/kvm_vm.py @@ -516,7 +516,7 @@ class VM: pa_type) return False - elif pa_type and pa_type != "no": + elif pa_type is not None and pa_type != "no": logging.warn("Unsupported pci_assignable type: %s", pa_type) # Make qemu command