mirror of
https://github.com/samba-team/samba.git
synced 2025-12-17 04:23:50 +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
@@ -16,6 +16,7 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
from __future__ import print_function
|
||||
"""NT Acls."""
|
||||
|
||||
|
||||
@@ -73,7 +74,7 @@ def getntacl(lp, file, backend=None, eadbfile=None, direct_db_access=True, servi
|
||||
except Exception:
|
||||
# FIXME: Don't catch all exceptions, just those related to opening
|
||||
# xattrdb
|
||||
print "Fail to open %s" % dbname
|
||||
print("Fail to open %s" % dbname)
|
||||
attribute = samba.xattr_native.wrap_getxattr(file,
|
||||
xattr.XATTR_NTACL_NAME)
|
||||
else:
|
||||
@@ -152,7 +153,7 @@ def setntacl(lp, file, sddl, domsid, backend=None, eadbfile=None, use_ntvfs=True
|
||||
except Exception:
|
||||
# FIXME: Don't catch all exceptions, just those related to opening
|
||||
# xattrdb
|
||||
print "Fail to open %s" % dbname
|
||||
print("Fail to open %s" % dbname)
|
||||
samba.xattr_native.wrap_setxattr(file, xattr.XATTR_NTACL_NAME,
|
||||
ndr_pack(ntacl))
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user