summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-rw-r--r--python/samba/idmap.py2
-rw-r--r--python/samba/netcmd/user.py2
2 files changed, 2 insertions, 2 deletions
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: