diff options
| author | Martin Basti <mbasti@redhat.com> | 2016-08-19 10:03:55 +0200 |
|---|---|---|
| committer | Martin Basti <mbasti@redhat.com> | 2016-08-19 13:04:52 +0200 |
| commit | 86e156c3c5f331e3f169b941be2d9f72e7c8f000 (patch) | |
| tree | e3cf36f9dd09913b3f4bdc1e60ecc754bf9870d0 /ipapython | |
| parent | 6b7d6417d403c983691c790c1e60cfe32bf1c420 (diff) | |
| download | freeipa-86e156c3c5f331e3f169b941be2d9f72e7c8f000.tar.gz freeipa-86e156c3c5f331e3f169b941be2d9f72e7c8f000.tar.xz freeipa-86e156c3c5f331e3f169b941be2d9f72e7c8f000.zip | |
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>
Diffstat (limited to 'ipapython')
| -rw-r--r-- | ipapython/dn.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ipapython/dn.py b/ipapython/dn.py index 8585ee95f..4ba741e2f 100644 --- a/ipapython/dn.py +++ b/ipapython/dn.py @@ -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__()) |
