From 2013f22b4e2203f88f482ff545aaafee35c72494 Mon Sep 17 00:00:00 2001
From: Jiří Pinkava <j-pi@seznam.cz>
Date: Tue, 28 Jun 2016 13:14:38 +0200
Subject: simplify application of staticmethod in .py

---
 gr-digital/examples/ofdm/transmit_path.py | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

(limited to 'gr-digital/examples/ofdm/transmit_path.py')

diff --git a/gr-digital/examples/ofdm/transmit_path.py b/gr-digital/examples/ofdm/transmit_path.py
index aa146cea96..98a81f3c1a 100644
--- a/gr-digital/examples/ofdm/transmit_path.py
+++ b/gr-digital/examples/ofdm/transmit_path.py
@@ -75,7 +75,8 @@ class transmit_path(gr.hier_block2):
         Calls the transmitter method to send a packet
         """
         return self.ofdm_tx.send_pkt(payload, eof)
-        
+
+    @staticmethod
     def add_options(normal, expert):
         """
         Adds transmitter-specific options to the Options Parser
@@ -92,9 +93,6 @@ class transmit_path(gr.hier_block2):
                           default=False,
                           help="Log all parts of flow graph to file (CAUTION: lots of data)")
 
-    # Make a static method to call before instantiation
-    add_options = staticmethod(add_options)
-
     def _print_verbage(self):
         """
         Prints information about the transmit path
-- 
cgit v1.2.3