source: ralphm-patches/disco_warning.patch

Last change on this file was 57:0d8b6cf41728, checked in by Ralph Meijer <ralphm@…>, 9 years ago

Wokkel 0.7.0 release, clean up various patches.

File size: 813 bytes
  • wokkel/pubsub.py

    # HG changeset patch
    # Parent 46b33f13f14214ec900a189348a21824d915212a
    
    diff -r 46b33f13f142 wokkel/pubsub.py
    a b  
    1010U{XEP-0060<http://xmpp.org/extensions/xep-0060.html>}.
    1111"""
    1212
     13import warnings
     14
    1315from zope.interface import implements
    1416
    1517from twisted.internet import defer
     
    11031105            if not nodeInfo:
    11041106                return
    11051107
     1108            if 'meta-data' in nodeInfo and 'type' in nodeInfo:
     1109                warnings.warn("passing node info using key 'meta-data' is deprecated", DeprecationWarning)
    11061110            (nodeType, metaData) = nodeInfo['type'], nodeInfo['meta-data']
    11071111            info.append(disco.DiscoIdentity('pubsub', nodeType))
    11081112            if metaData:
Note: See TracBrowser for help on using the repository browser.