Dealing with deprecated next()

This commit is contained in:
Miroslav Stampar
2019-01-22 02:47:06 +01:00
parent 2c270ed250
commit 1adc66b763
13 changed files with 32 additions and 32 deletions

View File

@@ -313,7 +313,7 @@ def unionUse(expression, unpack=True, dump=False):
with kb.locks.limit:
try:
threadData.shared.counter += 1
num = threadData.shared.limits.next()
num = next(threadData.shared.limits)
except StopIteration:
break