Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Autobuild-User(master): Noel Power <npower@samba.org>
Autobuild-Date(master): Mon Apr 30 18:25:25 CEST 2018 on sn-devel-144
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from __future__ import print_function
+from __future__ import division
from samba import colour
import sys
if '-' in p[2:20]:
q, p = p.split('-', 1)
else:
- n = len(p) / 12
- b = len(p) / n
+ n = len(p) // 12
+ b = len(p) // n
q, p = p[:b], p[b:]
pieces.append(q + '-')
if p:
#
from __future__ import print_function
+from __future__ import division
import samba.getopt as options
import ldb
import string
# 512 bytes and a 2 bytes confounder is required.
#
def random_trust_secret(length):
- pw = samba.generate_random_machine_password(length/2, length/2)
+ pw = samba.generate_random_machine_password(length//2, length//2)
return string_to_byte_array(pw.encode('utf-16-le'))
if local_trust_info.trust_direction & lsa.LSA_TRUST_DIRECTION_INBOUND:
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from __future__ import print_function
+from __future__ import division
"""Helpers used for upgrading between different database formats."""
import os
for o in obj.array:
# like a timestamp but with the resolution of 1 minute
- minutestamp =_glue.nttime2unix(o.originating_change_time)/60
+ minutestamp =_glue.nttime2unix(o.originating_change_time) // 60
hash_ts = hash_id.get(str(o.originating_invocation_id))
if hash_ts is None: