Received: from eggs.gnu.org ([2001:4830:134:3::10]:44251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHerZ-0001vZ-QK for qemu-devel@nongnu.org; Sun, 23 Feb 2014 14:37:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHerT-0005sH-7A for qemu-devel@nongnu.org; Sun, 23 Feb 2014 14:37:21 -0500 Received: from roura.ac.upc.es ([147.83.33.10]:55366) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHerS-0005s5-MN for qemu-devel@nongnu.org; Sun, 23 Feb 2014 14:37:15 -0500 From: =?utf-8?b?TGx1w61z?= Vilanova Date: Sun, 23 Feb 2014 20:37:13 +0100 Message-Id: <20140223193713.28465.36277.stgit@fimbulvetr.bsc.es> In-Reply-To: <20140223193656.28465.12158.stgit@fimbulvetr.bsc.es> References: <20140223193656.28465.12158.stgit@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH 3/8] trace: [tracetool] Spacing changes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Stefan Hajnoczi Signed-off-by: Llu=C3=ADs Vilanova --- 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