Remove forgotten print from DN.__str__ implementation

These debug prints were forgotten there and should be removed, because
str(DN) is often operation and we may save time with handling exceptions
and printing unwanted debug

Reviewed-By: David Kupka <dkupka@redhat.com>
This commit is contained in:
Martin Basti committed 2016-08-19 13:04:52 +02:00
1 parent 6b7d6417d4
commit 86e156c3c5
1 file changed
+1 -6
+1 -6
View File
@@ -1145,12 +1145,7 @@ class DN(object):
return self.RDN_type(*rdn, **{'raw': True})
def __str__(self):
try:
return dn2str(self.rdns)
except Exception as e:
print(len(self.rdns))
print(self.rdns)
raise
return dn2str(self.rdns)
def __repr__(self):
return "%s.%s('%s')" % (self.__module__, self.__class__.__name__, self.__str__())