fixeria has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/c/osmocom-bb/+/14918 )

Change subject: trx_toolkit/rand_burst_gen.py: fix compatibility with Python 3
......................................................................

trx_toolkit/rand_burst_gen.py: fix compatibility with Python 3

Change-Id: I362881af83664f94be09d40f43dfb23d18a35136
---
M src/target/trx_toolkit/rand_burst_gen.py
1 file changed, 1 insertion(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  fixeria: Looks good to me, approved



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 @@
        # 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

--
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/14918
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I362881af83664f94be09d40f43dfb23d18a35136
Gerrit-Change-Number: 14918
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-MessageType: merged

Reply via email to