From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40342) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiLOJ-0007lg-5V for qemu-devel@nongnu.org; Thu, 08 May 2014 06:17:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WiLOE-0003kZ-CT for qemu-devel@nongnu.org; Thu, 08 May 2014 06:17:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WiLOE-0003kI-4S for qemu-devel@nongnu.org; Thu, 08 May 2014 06:17:22 -0400 From: Stefan Hajnoczi Date: Wed, 7 May 2014 19:16:40 +0200 Message-Id: <1399483006-17781-4-git-send-email-stefanha@redhat.com> In-Reply-To: <1399483006-17781-1-git-send-email-stefanha@redhat.com> References: <1399483006-17781-1-git-send-email-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PULL 3/9] trace: [tracetool] Spacing changes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , =?UTF-8?q?Llu=C3=ADs=20Vilanova?= , Stefan Hajnoczi From: Llu=C3=ADs Vilanova Signed-off-by: Llu=C3=ADs Vilanova Signed-off-by: Stefan Hajnoczi --- scripts/tracetool/__init__.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/tracetool/__init__.py b/scripts/tracetool/__init__.p= y index bfe44bd..3cf7a4e 100644 --- a/scripts/tracetool/__init__.py +++ b/scripts/tracetool/__init__.py @@ -148,7 +148,8 @@ class Event(object): =20 unknown_props =3D set(self.properties) - self._VALID_PROPS if len(unknown_props) > 0: - raise ValueError("Unknown properties: %s" % ", ".join(unknow= n_props)) + raise ValueError("Unknown properties: %s" + % ", ".join(unknown_props)) =20 def copy(self): """Create a new copy.""" @@ -206,7 +207,7 @@ class TracetoolError (Exception): pass =20 =20 -def try_import(mod_name, attr_name =3D None, attr_default =3D None): +def try_import(mod_name, attr_name=3DNone, attr_default=3DNone): """Try to import a module and get an attribute from it. =20 Parameters @@ -233,7 +234,7 @@ def try_import(mod_name, attr_name =3D None, attr_def= ault =3D None): =20 =20 def generate(fevents, format, backend, - binary =3D None, probe_prefix =3D None): + binary=3DNone, probe_prefix=3DNone): """Generate the output for the given (format, backend) pair. =20 Parameters --=20 1.9.0