s4/scripting: MORE py3 compatible print functions
[sfrench/samba-autobuild/.git] / source4 / scripting / bin / sambaundoguididx
index 20a84c34618eafdf7f86b086ee6124a65cdb7f90..00fe63897b42dc823e8ed6a3131817e5f4616a62 100755 (executable)
@@ -1,4 +1,5 @@
 #!/usr/bin/env python3
+from __future__ import print_function
 import optparse
 import sys
 
@@ -73,11 +74,12 @@ samdb.transaction_commit()
 print("Re-opening with the full DB stack")
 samdb = SamDB(url=url,
                           lp=lp_ctx)
-print "Re-triggering another re-index"
+print("Re-triggering another re-index")
 chk = dbcheck(samdb)
 
 chk.reindex_database()
 
-print "Your database has been downgraded to DN-based index values."
+print("Your database has been downgraded to DN-based index values.")
 
-print "NOTE: Any use of a Samba 4.8 tool including ldbsearch will auto-upgrade back to GUID index mode"
+print("NOTE: Any use of a Samba 4.8 tool including ldbsearch will "
+      "auto-upgrade back to GUID index mode")