From 25e2e7287b20e8dd8e5cf9c0fe07eb754b81c10c Mon Sep 17 00:00:00 2001
From: Josh Morman <jmorman@gnuradio.org>
Date: Wed, 24 Nov 2021 12:03:48 -0500
Subject: blocks: pep8 formatting

Signed-off-by: Josh Morman <jmorman@gnuradio.org>
---
 gr-blocks/python/blocks/msg_pair_to_var.py | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

(limited to 'gr-blocks/python/blocks/msg_pair_to_var.py')

diff --git a/gr-blocks/python/blocks/msg_pair_to_var.py b/gr-blocks/python/blocks/msg_pair_to_var.py
index 97f73f85f8..ab0fd14973 100644
--- a/gr-blocks/python/blocks/msg_pair_to_var.py
+++ b/gr-blocks/python/blocks/msg_pair_to_var.py
@@ -11,6 +11,7 @@
 from gnuradio import gr
 import pmt
 
+
 class msg_pair_to_var(gr.sync_block):
     """
     This block will take an input message pair and allow you to set a flowgraph variable
@@ -18,8 +19,10 @@ class msg_pair_to_var(gr.sync_block):
     of the datatype expected by the flowgraph the behavior of the flowgraph may be
     unpredictable.
     """
+
     def __init__(self, callback):
-        gr.sync_block.__init__(self, name="msg_pair_to_var", in_sig=None, out_sig=None)
+        gr.sync_block.__init__(
+            self, name="msg_pair_to_var", in_sig=None, out_sig=None)
 
         self.callback = callback
 
@@ -28,15 +31,16 @@ class msg_pair_to_var(gr.sync_block):
 
     def msg_handler(self, msg):
         if not pmt.is_pair(msg) or pmt.is_dict(msg) or pmt.is_pdu(msg):
-            gr.log.warn("Input message %s is not a simple pair, dropping" % repr(msg))
+            gr.log.warn(
+                "Input message %s is not a simple pair, dropping" % repr(msg))
             return
 
         new_val = pmt.to_python(pmt.cdr(msg))
         try:
             self.callback(new_val)
         except Exception as e:
-            gr.log.error("Error when calling " + repr(self.callback.name()) + " with "
-                         + repr(new_val) + " (reason: %s)"  % repr(e))
+            gr.log.error("Error when calling " + repr(self.callback.name()) + " with " +
+                         repr(new_val) + " (reason: %s)" % repr(e))
 
     def stop(self):
         return True
-- 
cgit v1.2.3