mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
python/samba/emulate: py2/py3 .next usage, replace with next() fn
This commit is contained in:
parent
9e349fe82a
commit
b0c9de820c
@ -340,7 +340,7 @@ class ReplayContext(object):
|
||||
self.last_netlogon_bad = False
|
||||
self.last_samlogon_bad = False
|
||||
self.generate_ldap_search_tables()
|
||||
self.next_conversation_id = itertools.count().next
|
||||
self.next_conversation_id = next(itertools.count())
|
||||
|
||||
def generate_ldap_search_tables(self):
|
||||
session = system_session()
|
||||
@ -375,7 +375,7 @@ class ReplayContext(object):
|
||||
# for k, v in self.dn_map.items():
|
||||
# print >>sys.stderr, k, len(v)
|
||||
|
||||
for k, v in dn_map.items():
|
||||
for k in list(dn_map.keys()):
|
||||
if k[-3:] != ',DC':
|
||||
continue
|
||||
p = k[:-3]
|
||||
|
Loading…
x
Reference in New Issue
Block a user