Change in ...osmocom-bb[master]: trx_toolkit/trx_sniff.py: fix compatibility with Python 3

fixeria gerrit-no-reply at lists.osmocom.org
Tue Jul 23 22:13:43 UTC 2019


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

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

trx_toolkit/trx_sniff.py: fix compatibility with Python 3

Change-Id: I9cd9b7baae31045c6495b90df2517d32772098ed
---
M src/target/trx_toolkit/trx_sniff.py
1 file changed, 1 insertion(+), 1 deletion(-)

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



diff --git a/src/target/trx_toolkit/trx_sniff.py b/src/target/trx_toolkit/trx_sniff.py
index add04e1..6592455 100755
--- a/src/target/trx_toolkit/trx_sniff.py
+++ b/src/target/trx_toolkit/trx_sniff.py
@@ -83,7 +83,7 @@
 		trx = udp.payload
 
 		# Convert to bytearray
-		msg_raw = bytearray(str(trx))
+		msg_raw = bytearray(trx.load)
 
 		# Determine a burst direction (L1 <-> TRX)
 		l12trx = udp.sport > udp.dport

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

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I9cd9b7baae31045c6495b90df2517d32772098ed
Gerrit-Change-Number: 14913
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <axilirator at gmail.com>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190723/d49599cd/attachment.html>


More information about the gerrit-log mailing list