mirror of
https://github.com/samba-team/samba.git
synced 2025-07-29 15:42:04 +03:00
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>
This commit is contained in:
committed by
Andrew Bartlett
parent
aacbe1b65c
commit
9c251740b4
@ -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))
|
||||
|
Reference in New Issue
Block a user