Vadim Yanitskiy has uploaded this change for review. ( 
https://gerrit.osmocom.org/12323


Change subject: trx_toolkit/burst_send.py: fix: use proper argparse group
......................................................................

trx_toolkit/burst_send.py: fix: use proper argparse group

Found using Flake8, F841 "local variable 'pf_group' is assigned
to but never used". The filtering related options should be
defined in 'pf_group' group, not in 'cnt_group'.

Change-Id: I15d17c134cbbbd54d761113a56c1f83910ab6407
---
M src/target/trx_toolkit/burst_send.py
1 file changed, 3 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmocom-bb refs/changes/23/12323/1

diff --git a/src/target/trx_toolkit/burst_send.py 
b/src/target/trx_toolkit/burst_send.py
index 0cf63bb..7186863 100755
--- a/src/target/trx_toolkit/burst_send.py
+++ b/src/target/trx_toolkit/burst_send.py
@@ -134,13 +134,13 @@
                        help = "Stop after sending N messages")

                pf_group = parser.add_argument_group("Filtering (optional)")
-               cnt_group.add_argument("--timeslot", metavar = "TN",
+               pf_group.add_argument("--timeslot", metavar = "TN",
                        dest = "pf_tn", type = int, choices = range(0, 8),
                        help = "TDMA timeslot number (equal TN)")
-               cnt_group.add_argument("--frame-num-lt", metavar = "FN",
+               pf_group.add_argument("--frame-num-lt", metavar = "FN",
                        dest = "pf_fn_lt", type = int,
                        help = "TDMA frame number (lower than FN)")
-               cnt_group.add_argument("--frame-num-gt", metavar = "FN",
+               pf_group.add_argument("--frame-num-gt", metavar = "FN",
                        dest = "pf_fn_gt", type = int,
                        help = "TDMA frame number (greater than FN)")


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

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I15d17c134cbbbd54d761113a56c1f83910ab6407
Gerrit-Change-Number: 12323
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <[email protected]>

Reply via email to