Skip to content

Commit 92e6c5e

Browse files
authored
Merge pull request #145 from luisincrespo/use-range-instead-of-xrange
Use range instead of xrange to fix compatibility issue with Python3.
2 parents 65f33af + 27fb4df commit 92e6c5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

splitio/tasks/uwsgi_wrappers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def uwsgi_report_impressions(user_config):
124124
while True:
125125
try:
126126
impressions_sync_task._send_impressions() #pylint: disable=protected-access
127-
for _ in xrange(0, seconds):
127+
for _ in range(0, seconds):
128128
if storage.should_flush():
129129
storage.acknowledge_flush()
130130
break
@@ -157,7 +157,7 @@ def uwsgi_report_events(user_config):
157157
while True:
158158
try:
159159
task._send_events() #pylint: disable=protected-access
160-
for _ in xrange(0, seconds):
160+
for _ in range(0, seconds):
161161
if storage.should_flush():
162162
storage.acknowledge_flush()
163163
break

0 commit comments

Comments
 (0)