Skip to content

Commit

Permalink
Fix dns import
Browse files Browse the repository at this point in the history
twisted.protocols.dns was moved to twisted.names.dns long ago in
Twisted 2.0. There used to be a compatibility layer in
twisted.protocols.dns, but that was removed in Twisted 9.0.

https://bugs.launchpad.net/ubuntu/+source/ldaptor/+bug/881404
  • Loading branch information
antong authored and psi29a committed Jul 2, 2014
1 parent 01d3d34 commit 6f6ecf1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bin/ldaptor-find-server
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import sys
from ldaptor.protocols.ldap.distinguishedname import DistinguishedName
from twisted.internet.defer import DeferredList
from twisted.internet import reactor
from twisted.protocols import dns
from twisted.names import client
from twisted.names import client, dns

def printAnswer(answers, dn):
for rrlist in answers:
Expand Down

0 comments on commit 6f6ecf1

Please sign in to comment.