summaryrefslogtreecommitdiff
path: root/python/samba/dbchecker.py
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2018-03-09 13:53:45 +0000
committerAndrew Bartlett <abartlet@samba.org>2018-03-23 07:28:23 +0100
commit9c251740b42b04eb0c277bc7975170e0fa784ebf (patch)
treeb3227feeab8857613eebacb9a23dcff4542a00bc /python/samba/dbchecker.py
parentaacbe1b65ccf6f75d26bcae517632e09552f23ca (diff)
downloadsamba-9c251740b42b04eb0c277bc7975170e0fa784ebf.tar.gz
samba python libs: convert print func to be py2/py3 compatible
Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'python/samba/dbchecker.py')
-rw-r--r--python/samba/dbchecker.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/python/samba/dbchecker.py b/python/samba/dbchecker.py
index d4d7e4ead44..fb968a56481 100644
--- a/python/samba/dbchecker.py
+++ b/python/samba/dbchecker.py
@@ -17,6 +17,7 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
+from __future__ import print_function
import ldb
import samba
import time
@@ -1759,7 +1760,7 @@ newSuperior: %s""" % (str(from_dn), str(to_rdn), str(to_base)))
# the correct values are above 0x80000000) values first and
# remove the 'second' value we see.
for o in reversed(ctr.array):
- print "%s: 0x%08x" % (dn, o.attid)
+ print("%s: 0x%08x" % (dn, o.attid))
att = self.samdb_schema.get_lDAPDisplayName_by_attid(o.attid)
if att.lower() in set_att:
self.report('ERROR: duplicate attributeID values for %s in %s on %s\n' % (att, attr, dn))