Ignore:
Timestamp:
May 6, 2013, 9:15:41 PM (7 years ago)
Author:
Ralph Meijer <ralphm@…>
Branch:
default
Message:

Deprecate prepareIDNName.

C{unicode.encode('idna')} does exactly the same as the recently
introduced L{generic.prepareIDNName}.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wokkel/server.py

    r178 r184  
    3030from twisted.words.xish import domish
    3131
    32 from wokkel.generic import DeferredXmlStreamFactory, XmlPipe, prepareIDNName
     32from wokkel.generic import DeferredXmlStreamFactory, XmlPipe
    3333
    3434NS_DIALBACK = 'jabber:server:dialback'
     
    469469
    470470def initiateS2S(factory):
    471     domain = prepareIDNName(factory.authenticator.otherHost)
     471    domain = factory.authenticator.otherHost.encode('idna')
    472472    c = XMPPServerConnector(reactor, domain, factory)
    473473    c.connect()
Note: See TracChangeset for help on using the changeset viewer.