From 63648af515df6c62e44ebeaa81d73e49511d03bc Mon Sep 17 00:00:00 2001 From: Noel Power Date: Fri, 4 May 2018 11:22:43 +0100 Subject: python/samba: Bulk replace of '.next()' method with function 'next()' Signed-off-by: Noel Power Reviewed-by: Andrew Bartlett --- python/samba/idmap.py | 2 +- python/samba/netcmd/user.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'python') diff --git a/python/samba/idmap.py b/python/samba/idmap.py index 0cb729fbc29..a618347fa21 100644 --- a/python/samba/idmap.py +++ b/python/samba/idmap.py @@ -95,4 +95,4 @@ type: %s cn: %s """ % (sid, unixid, sid, type_string, sid) - self.add(self.parse_ldif(mod).next()[1]) + self.add(next(self.parse_ldif(mod))[1]) diff --git a/python/samba/netcmd/user.py b/python/samba/netcmd/user.py index 1e2e040e934..f849e6ee837 100644 --- a/python/samba/netcmd/user.py +++ b/python/samba/netcmd/user.py @@ -1879,7 +1879,7 @@ samba-tool user syncpasswords --terminate \\ self.current_pid = None self.outf.write("Initialized cache_ldb[%s]\n" % (cache_ldb)) msgs = self.cache.parse_ldif(add_ldif) - changetype,msg = msgs.next() + changetype,msg = next(msgs) ldif = self.cache.write_ldif(msg, ldb.CHANGETYPE_NONE) self.outf.write("%s" % ldif) else: -- cgit v1.2.3