mirror of
https://github.com/torproject/onionbalance.git
synced 2024-11-23 01:19:49 +00:00
Drop dependency on future
This commit is contained in:
parent
b9020ced62
commit
f9506b8fcb
@ -1,4 +1,3 @@
|
||||
from future.moves.itertools import zip_longest
|
||||
import random
|
||||
import itertools
|
||||
|
||||
@ -53,7 +52,7 @@ class IntroductionPointSet(object):
|
||||
"""
|
||||
|
||||
# Combine intro points from across the backend instances and flatten
|
||||
intro_points = zip_longest(*self.intro_points)
|
||||
intro_points = itertools.zip_longest(*self.intro_points)
|
||||
flat_intro_points = itertools.chain.from_iterable(intro_points)
|
||||
for intro_point in itertools.cycle(flat_intro_points):
|
||||
if intro_point:
|
||||
|
@ -4,5 +4,3 @@ stem>=1.8
|
||||
pyyaml>=4.2b1
|
||||
cryptography>=3.2
|
||||
pycryptodomex
|
||||
|
||||
future>=0.14.3
|
||||
|
Loading…
Reference in New Issue
Block a user