diff --git a/terminatorlib/borg.py b/terminatorlib/borg.py index dc3d17bf..e4132dc3 100755 --- a/terminatorlib/borg.py +++ b/terminatorlib/borg.py @@ -5,6 +5,7 @@ http://code.activestate.com/recipes/66531/""" # pylint: disable-msg=R0903 +# pylint: disable-msg=R0921 class Borg: """Definition of a class that can never be duplicated. Correct usage is thus: diff --git a/terminatorlib/container.py b/terminatorlib/container.py index 42290c94..5609cc74 100755 --- a/terminatorlib/container.py +++ b/terminatorlib/container.py @@ -139,21 +139,21 @@ class Container(object): """Unzoom a terminal""" raise NotImplementedError('unzoom') - def construct_confirm_close(self, window, type): + def construct_confirm_close(self, window, reqtype): """Create a confirmation dialog for closing things""" dialog = gtk.Dialog(_('Close?'), window, gtk.DIALOG_MODAL) dialog.set_has_separator(False) dialog.set_resizable(False) - cancel = dialog.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT) - close_all = dialog.add_button(gtk.STOCK_CLOSE, gtk.RESPONSE_ACCEPT) - label = close_all.get_children()[0].get_children()[0].get_children()[1].set_label(_('Close _Terminals')) + dialog.add_button(gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT) + c_all = dialog.add_button(gtk.STOCK_CLOSE, gtk.RESPONSE_ACCEPT) + c_all.get_children()[0].get_children()[0].get_children()[1].set_label(_('Close _Terminals')) primary = gtk.Label(_('Close multiple terminals?')) primary.set_use_markup(True) primary.set_alignment(0, 0.5) - secondary = gtk.Label(_('This %s has several terminals open. Closing the \ -%s will also close all terminals within it.') % (type, type)) + secondary = gtk.Label(_('This %s has several terminals open. Closing \ +the %s will also close all terminals within it.') % (reqtype, reqtype)) secondary.set_line_wrap(True) labels = gtk.VBox() diff --git a/terminatorlib/encoding.py b/terminatorlib/encoding.py index 6ca8d146..f2f7920e 100644 --- a/terminatorlib/encoding.py +++ b/terminatorlib/encoding.py @@ -25,6 +25,7 @@ This list is taken from gnome-terminal's src/terminal-encoding.c from translation import _ +#pylint: disable-msg=R0903 class TerminatorEncoding: """Class to store encoding details"""