[chirp_devel] [PATCH] Resolving a couple pep errors
Kosta A.
Sat Jul 3 12:51:42 PDT 2021
# HG changeset patch
# User Kosta A. <ve7kcy at gmail.com>
# Date 1625341895 25200
# Sat Jul 03 12:51:35 2021 -0700
# Branch open-recent
# Node ID f4b5cc47b12ab123cd0605e0a0004eb0050b7afa
# Parent bea11de983007eac96d69b3a0aeccfdcaab1c2a7
Resolving a couple pep errors.
diff --git a/chirp/ui/mainapp.py b/chirp/ui/mainapp.py
--- a/chirp/ui/mainapp.py
+++ b/chirp/ui/mainapp.py
@@ -557,7 +557,8 @@
if (index < len(recent_files)):
fname = recent_files[index]
widget_label = os.path.basename(fname).replace("_", "__")
- widget_tip = _("Open recent file") + (" {name}").format(name=fname)
+ widget_tip = _("Open recent file") + \
+ (" {name}").format(name=fname)
widget_path = path + "/" + action_name
action = gtk.Action(action_name, widget_label, widget_tip, "")
@@ -588,7 +589,7 @@
def clear_recent_files(self):
self._set_recent_list([])
- self.update_recent_files();
+ self.update_recent_files()
def import_stock_config(self, action, config):
eset = self.get_current_editorset()
@@ -1982,7 +1983,8 @@
('open', gtk.STOCK_OPEN, None, None, None, self.mh),
('openstock', None, _("Open Stock Config"), None, None, self.mh),
('recent', None, _("Open _Recent"), None, None, self.mh),
- ('clearrecent', None, _("Clear Recently Opened"), None, None, self.mh),
+ ('clearrecent', None, _("Clear Recently Opened"),
+ None, None, self.mh),
('save', gtk.STOCK_SAVE, None, None, None, self.mh),
('saveas', gtk.STOCK_SAVE_AS, None, None, None, self.mh),
('loadmod', None, _("Load Module"), None, None, self.mh),
More information about the chirp_devel
mailing list