summaryrefslogtreecommitdiffstats
path: root/ipapython/dn.py
diff options
context:
space:
mode:
Diffstat (limited to 'ipapython/dn.py')
-rw-r--r--ipapython/dn.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/ipapython/dn.py b/ipapython/dn.py
index 640be72c3..a3b20121a 100644
--- a/ipapython/dn.py
+++ b/ipapython/dn.py
@@ -417,6 +417,7 @@ It is possible to "copy" an object by passing an object of the same type
to the constructor. The result may share underlying structure.
'''
+from __future__ import print_function
import sys
@@ -1121,8 +1122,8 @@ class DN(object):
try:
return dn2str(self.rdns)
except Exception, e:
- print len(self.rdns)
- print self.rdns
+ print(len(self.rdns))
+ print(self.rdns)
raise
def __repr__(self):