summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0332/stanza/data.py
diff options
context:
space:
mode:
Diffstat (limited to 'sleekxmpp/plugins/xep_0332/stanza/data.py')
-rw-r--r--sleekxmpp/plugins/xep_0332/stanza/data.py30
1 files changed, 0 insertions, 30 deletions
diff --git a/sleekxmpp/plugins/xep_0332/stanza/data.py b/sleekxmpp/plugins/xep_0332/stanza/data.py
deleted file mode 100644
index a3678038..00000000
--- a/sleekxmpp/plugins/xep_0332/stanza/data.py
+++ /dev/null
@@ -1,30 +0,0 @@
-"""
- SleekXMPP: The Sleek XMPP Library
- Implementation of HTTP over XMPP transport
- http://xmpp.org/extensions/xep-0332.html
- Copyright (C) 2015 Riptide IO, sangeeth@riptideio.com
- This file is part of SleekXMPP.
-
- See the file LICENSE for copying permission.
-"""
-
-from sleekxmpp.xmlstream import ElementBase
-
-
-class HTTPData(ElementBase):
- """
- The data element.
- """
- name = 'data'
- namespace = 'urn:xmpp:http'
- interfaces = set(['data'])
- plugin_attrib = 'data'
- is_extension = True
-
- def get_data(self, encoding='text'):
- data = self._get_sub_text(encoding, None)
- return str(data) if data is not None else data
-
- def set_data(self, data, encoding='text'):
- self._set_sub_text(encoding, text=data)
-