Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/python-nbxmpp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'nbxmpp/modules/security_labels.py')
-rw-r--r--nbxmpp/modules/security_labels.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/nbxmpp/modules/security_labels.py b/nbxmpp/modules/security_labels.py
index b1e812c..76c55e9 100644
--- a/nbxmpp/modules/security_labels.py
+++ b/nbxmpp/modules/security_labels.py
@@ -15,7 +15,7 @@
# You should have received a copy of the GNU General Public License
# along with this program; If not, see <http://www.gnu.org/licenses/>.
-from nbxmpp.protocol import NS_SECLABEL
+from nbxmpp.namespaces import Namespace
from nbxmpp.structs import StanzaHandler
from nbxmpp.structs import SecurityLabel
from nbxmpp.structs import DisplayMarking
@@ -30,12 +30,12 @@ class SecurityLabels(BaseModule):
self.handlers = [
StanzaHandler(name='message',
callback=self._process_message_security_label,
- ns=NS_SECLABEL,
+ ns=Namespace.SECLABEL,
priority=15),
]
def _process_message_security_label(self, _client, stanza, properties):
- security = stanza.getTag('securitylabel', namespace=NS_SECLABEL)
+ security = stanza.getTag('securitylabel', namespace=Namespace.SECLABEL)
if security is None:
return