s4/dsdb/tests: py2/py3 compatability replace xrange with range
[metze/samba/wip.git] / source4 / dsdb / tests / python / notification.py
index a4456cb12c678101b0dc8967bdcd5b3d963bc5ad..e8ff9ddf1ac46d5c817c392b20a0a8c3871a65cb 100755 (executable)
@@ -163,7 +163,7 @@ delete: otherLoginWorkstations
         max_notifications = 5
 
         notifies = [None] * (max_notifications + 1)
-        for i in xrange(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,
@@ -172,7 +172,7 @@ delete: otherLoginWorkstations
                                                    timeout=1)
         num_admin_limit = 0
         num_time_limit = 0
-        for i in xrange(0, max_notifications + 1):
+        for i in range(0, max_notifications + 1):
             try:
                 for msg in notifies[i]:
                     continue