diff options
| author | Noel Power <noel.power@suse.com> | 2018-05-04 11:22:43 +0100 |
|---|---|---|
| committer | Andrew Bartlett <abartlet@samba.org> | 2018-05-12 21:38:16 +0200 |
| commit | 63648af515df6c62e44ebeaa81d73e49511d03bc (patch) | |
| tree | 09b44e0df1cdb4219bd0a5fd188e275be1fb5672 /python | |
| parent | fcda17cb42f3384c62d81903e364e8ddb4ce217d (diff) | |
| download | samba-63648af515df6c62e44ebeaa81d73e49511d03bc.tar.gz samba-63648af515df6c62e44ebeaa81d73e49511d03bc.tar.bz2 samba-63648af515df6c62e44ebeaa81d73e49511d03bc.zip | |
python/samba: Bulk replace of '.next()' method with function 'next()'
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'python')
| -rw-r--r-- | python/samba/idmap.py | 2 | ||||
| -rw-r--r-- | python/samba/netcmd/user.py | 2 |
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: |
