From 6f6ecf1ed04c85c4a378ccebb7267783f9cbf524 Mon Sep 17 00:00:00 2001 From: Anton Gyllenberg Date: Wed, 7 Dec 2011 10:19:48 +0200 Subject: [PATCH] Fix dns import 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 --- bin/ldaptor-find-server | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/bin/ldaptor-find-server b/bin/ldaptor-find-server index 1a849f6c..903c1f51 100755 --- a/bin/ldaptor-find-server +++ b/bin/ldaptor-find-server @@ -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: