summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-07-24 05:34:41 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-07-24 05:44:19 +0700
commitd206f0cc2fd13f636a9ae8399bbe57c5622b03f7 (patch)
tree33c3427142a3c4dd3744e213a4d4cbb75eecd660 /src
parent06e3b4fa54645532e0583215fb4ccebb3e5ce815 (diff)
trx_toolkit/rand_burst_gen.py: fix compatibility with Python 3
Diffstat (limited to 'src')
-rw-r--r--src/target/trx_toolkit/rand_burst_gen.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target/trx_toolkit/rand_burst_gen.py b/src/target/trx_toolkit/rand_burst_gen.py
index c449418..be4b696 100644
--- a/src/target/trx_toolkit/rand_burst_gen.py
+++ b/src/target/trx_toolkit/rand_burst_gen.py
@@ -46,6 +46,7 @@ class RandBurstGen:
# Pick a random TSC for a given burst type
def get_rand_tsc(self, bt):
tsc_list = filter(lambda seq: seq.bt == bt, list(TrainingSeqGMSK))
+ tsc_list = list(tsc_list) # In Python 3 filter() returns an iterator
return random.choice(tsc_list)
# Generate a normal burst