git.samba.org
/
metze
/
samba
/
wip.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
s4/dsdb/tests: py2/py3 compatability replace xrange with range
[metze/samba/wip.git]
/
source4
/
dsdb
/
tests
/
python
/
notification.py
diff --git
a/source4/dsdb/tests/python/notification.py
b/source4/dsdb/tests/python/notification.py
index a4456cb12c678101b0dc8967bdcd5b3d963bc5ad..e8ff9ddf1ac46d5c817c392b20a0a8c3871a65cb 100755
(executable)
--- a/
source4/dsdb/tests/python/notification.py
+++ b/
source4/dsdb/tests/python/notification.py
@@
-163,7
+163,7
@@
delete: otherLoginWorkstations
max_notifications = 5
notifies = [None] * (max_notifications + 1)
max_notifications = 5
notifies = [None] * (max_notifications + 1)
- for i in
x
range(0, max_notifications + 1):
+ for i in range(0, max_notifications + 1):
notifies[i] = self.ldb.search_iterator(base=self.base_dn,
expression="(objectClass=*)",
scope=ldb.SCOPE_SUBTREE,
notifies[i] = self.ldb.search_iterator(base=self.base_dn,
expression="(objectClass=*)",
scope=ldb.SCOPE_SUBTREE,
@@
-172,7
+172,7
@@
delete: otherLoginWorkstations
timeout=1)
num_admin_limit = 0
num_time_limit = 0
timeout=1)
num_admin_limit = 0
num_time_limit = 0
- for i in
x
range(0, max_notifications + 1):
+ for i in range(0, max_notifications + 1):
try:
for msg in notifies[i]:
continue
try:
for msg in notifies[i]:
continue