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/client.py

    r178 r184  
    8888    def __init__(self, jid, password, host=None, port=5222):
    8989        self.jid = jid
    90         self.domain = generic.prepareIDNName(jid.host)
     90        self.domain = jid.host.encode('idna')
    9191        self.host = host
    9292        self.port = port
     
    183183
    184184def clientCreator(factory):
    185     domain = generic.prepareIDNName(factory.authenticator.jid.host)
     185    domain = factory.authenticator.jid.host.encode('idna')
    186186    c = XMPPClientConnector(reactor, domain, factory)
    187187    c.connect()
Note: See TracChangeset for help on using the changeset viewer.