Ticket #3710: client.patch

File client.patch, 807 bytes (added by cary, 8 years ago)
  • twisted/names/client.py

     
    2020
    2121import os
    2222import errno
     23import warnings
    2324
    2425from zope.interface import implements
    2526
     
    494495        if reactor is None:
    495496            from twisted.internet import reactor
    496497        _ThreadedResolverImpl.__init__(self, reactor)
    497         # warnings.warn("twisted.names.client.ThreadedResolver is deprecated, use XXX instead.")
     498        warnings.warn(
     499            "twisted.names.client.ThreadedResolver is deprecated, "
     500            "use twisted.internet.base.ThreadedResolver instead.")
    498501
    499502class DNSClientFactory(protocol.ClientFactory):
    500503    def __init__(self, controller, timeout = 10):