From 817fc3ce9cdc819a291e76ec324c4e748381f035 Mon Sep 17 00:00:00 2001
From: Josh Morman <jmorman@gnuradio.org>
Date: Wed, 24 Nov 2021 12:48:20 -0500
Subject: grc: pep8 formatting

Signed-off-by: Josh Morman <jmorman@gnuradio.org>
---
 grc/gui/ParserErrorsDialog.py | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

(limited to 'grc/gui/ParserErrorsDialog.py')

diff --git a/grc/gui/ParserErrorsDialog.py b/grc/gui/ParserErrorsDialog.py
index 12f6f4c7a7..745dc47f0a 100644
--- a/grc/gui/ParserErrorsDialog.py
+++ b/grc/gui/ParserErrorsDialog.py
@@ -24,7 +24,8 @@ class ParserErrorsDialog(Gtk.Dialog):
         Args:
             block: a block instance
         """
-        GObject.GObject.__init__(self, title='Parser Errors', buttons=(Gtk.STOCK_CLOSE, Gtk.ResponseType.ACCEPT))
+        GObject.GObject.__init__(self, title='Parser Errors', buttons=(
+            Gtk.STOCK_CLOSE, Gtk.ResponseType.ACCEPT))
 
         self._error_logs = None
         self.tree_store = Gtk.TreeStore(str)
@@ -48,11 +49,12 @@ class ParserErrorsDialog(Gtk.Dialog):
             tree_view.expand_row(row.path, False)
 
         scrolled_window = Gtk.ScrolledWindow()
-        scrolled_window.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
+        scrolled_window.set_policy(
+            Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)
         scrolled_window.add(tree_view)
 
         self.vbox.pack_start(scrolled_window, True)
-        self.set_size_request(2*MIN_DIALOG_WIDTH, MIN_DIALOG_HEIGHT)
+        self.set_size_request(2 * MIN_DIALOG_WIDTH, MIN_DIALOG_HEIGHT)
         self.show_all()
 
     def update_tree_store(self, error_logs):
@@ -68,7 +70,8 @@ class ParserErrorsDialog(Gtk.Dialog):
                 code = None
             for error in errors:
                 # http://lxml.de/api/lxml.etree._LogEntry-class.html
-                em = self.tree_store.append(parent, ["Line {e.line}: {e.message}".format(e=error)])
+                em = self.tree_store.append(
+                    parent, ["Line {e.line}: {e.message}".format(e=error)])
                 if code:
                     self.tree_store.append(em, ["\n".join(
                         "{} {}{}".format(line, code[line - 1].replace("\t", "    ").strip("\n"),
-- 
cgit v1.2.3