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

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Tue Jul 23 19:11:23 UTC 2019


fixeria has uploaded this change for review. ( 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(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/13/14913/1

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-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190723/3512a48a/attachment.htm>


More information about the gerrit-log mailing list