summaryrefslogtreecommitdiff
path: root/sleekxmpp/xmlstream
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2010-07-30 14:11:24 -0400
committerLance Stout <lancestout@gmail.com>2010-07-30 14:11:24 -0400
commit1cedea280499c0b7f7debb6c95442038d8f2d89c (patch)
tree4b7e103df40f0b0afd2c259aa4b46448ab826a26 /sleekxmpp/xmlstream
parentcbed8029bad691f8353854dc264f83303a196a09 (diff)
downloadslixmpp-1cedea280499c0b7f7debb6c95442038d8f2d89c.tar.gz
slixmpp-1cedea280499c0b7f7debb6c95442038d8f2d89c.tar.bz2
slixmpp-1cedea280499c0b7f7debb6c95442038d8f2d89c.tar.xz
slixmpp-1cedea280499c0b7f7debb6c95442038d8f2d89c.zip
Added optional default value to _getAttr.
Diffstat (limited to 'sleekxmpp/xmlstream')
-rw-r--r--sleekxmpp/xmlstream/stanzabase.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/xmlstream/stanzabase.py b/sleekxmpp/xmlstream/stanzabase.py
index 5b41a406..94ff958c 100644
--- a/sleekxmpp/xmlstream/stanzabase.py
+++ b/sleekxmpp/xmlstream/stanzabase.py
@@ -235,8 +235,8 @@ class ElementBase(tostring.ToString):
if name in self.xml.attrib:
del self.xml.attrib[name]
- def _getAttr(self, name):
- return self.xml.attrib.get(name, '')
+ def _getAttr(self, name, default=''):
+ return self.xml.attrib.get(name, default)
def _getSubText(self, name):
if '}' not in name: