From 7840efc812c0a0d4bc5b2a61ed79cc7147295493 Mon Sep 17 00:00:00 2001 From: Davorin Kunstelj Date: Fri, 16 May 2014 15:42:49 +0200 Subject: [PATCH] Update SOAPBuilder.py --- src/SOAPpy/SOAPBuilder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SOAPpy/SOAPBuilder.py b/src/SOAPpy/SOAPBuilder.py index f4f43fd..89fb80a 100644 --- a/src/SOAPpy/SOAPBuilder.py +++ b/src/SOAPpy/SOAPBuilder.py @@ -679,7 +679,7 @@ class SOAPBuilder: self.out.append('<%s%s%s>\n' % (tag, id, r)) d1 = getattr(obj, '__dict__', None) - if d1 is None and hasattr(obj, "__slots__") + if d1 is None and hasattr(obj, "__slots__"): d1 = dict(((k, getattr(obj, k)) for k in obj.__slots__)) if d1 is not None: for (k, v) in d1.items():