mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-11-03 12:48:53 -06:00
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:
1 parent
6b7d6417d4
commit
86e156c3c5
1 file changed
+1
-6
+1
-6
@@ -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__())
|
||||
|
||||
Reference in new issue
Block a user