From c43c7be86cafcc5bbea3bb943253e5c2c1162b1d Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Fri, 17 Feb 2012 11:40:07 -0800 Subject: [PATCH] Make last_xml usage a little more explict. --- sleekxmpp/xmlstream/stanzabase.py | 1 + 1 file changed, 1 insertion(+) diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py index dff8c99..1a146fa 100644 --- a/sleekxmpp/xmlstream/stanzabase.py +++ b/sleekxmpp/xmlstream/stanzabase.py @@ -352,6 +352,7 @@ class ElementBase(object): if self.xml is None: self.xml = xml + last_xml = self.xml if self.xml is None: # Generate XML from the stanza definition for ename in self.name.split('/'):