Fix unnecessary-pass pylint errors
This commit is contained in:
parent
3b2211776c
commit
47dae61e21
|
@ -131,7 +131,6 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
|
||||||
"""
|
"""
|
||||||
Derived types SHOULD implement this
|
Derived types SHOULD implement this
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
def update_ui(self):
|
def update_ui(self):
|
||||||
"""
|
"""
|
||||||
|
@ -149,13 +148,11 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
|
||||||
"""
|
"""
|
||||||
Derived types MAY implement this
|
Derived types MAY implement this
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
def _update_toolbar(self):
|
def _update_toolbar(self):
|
||||||
"""
|
"""
|
||||||
Derived types MAY implement this
|
Derived types MAY implement this
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
def _nec_our_status(self, obj):
|
def _nec_our_status(self, obj):
|
||||||
if self.account != obj.conn.name:
|
if self.account != obj.conn.name:
|
||||||
|
@ -698,7 +695,6 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
|
||||||
"""
|
"""
|
||||||
Derived types SHOULD implement this
|
Derived types SHOULD implement this
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
def _on_drag_leave(self, *args):
|
def _on_drag_leave(self, *args):
|
||||||
# FIXME: DND on non editable TextView, find a better way
|
# FIXME: DND on non editable TextView, find a better way
|
||||||
|
|
|
@ -38,16 +38,13 @@ class DefinitionError(BaseError):
|
||||||
"""
|
"""
|
||||||
Used to indicate errors occurred on command definition.
|
Used to indicate errors occurred on command definition.
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
class CommandError(BaseError):
|
class CommandError(BaseError):
|
||||||
"""
|
"""
|
||||||
Used to indicate errors occurred during command execution.
|
Used to indicate errors occurred during command execution.
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
class NoCommandError(BaseError):
|
class NoCommandError(BaseError):
|
||||||
"""
|
"""
|
||||||
Used to indicate an inability to find the specified command.
|
Used to indicate an inability to find the specified command.
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
|
@ -114,14 +114,12 @@ class CommandProcessor:
|
||||||
If returns True then command execution will be interrupted and
|
If returns True then command execution will be interrupted and
|
||||||
command will not be executed.
|
command will not be executed.
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
def command_postprocessor(self, cmd, name, arguments, args, kwargs, value):
|
def command_postprocessor(self, cmd, name, arguments, args, kwargs, value):
|
||||||
"""
|
"""
|
||||||
Redefine this method in the subclass to execute custom code
|
Redefine this method in the subclass to execute custom code
|
||||||
after command gets executed.
|
after command gets executed.
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
def looks_like_command(self, text, body, name, arguments):
|
def looks_like_command(self, text, body, name, arguments):
|
||||||
"""
|
"""
|
||||||
|
@ -132,7 +130,6 @@ class CommandProcessor:
|
||||||
be interrupted and that value will be used to return from
|
be interrupted and that value will be used to return from
|
||||||
process_as_command.
|
process_as_command.
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
def get_command(self, name):
|
def get_command(self, name):
|
||||||
cmd = get_command(self.COMMAND_HOST, name)
|
cmd = get_command(self.COMMAND_HOST, name)
|
||||||
|
|
|
@ -97,13 +97,11 @@ class NegotiationError(Exception):
|
||||||
"""
|
"""
|
||||||
A session negotiation failed
|
A session negotiation failed
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
class Cancelled(Exception):
|
class Cancelled(Exception):
|
||||||
"""
|
"""
|
||||||
The user cancelled an operation
|
The user cancelled an operation
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
class LatexError(Exception):
|
class LatexError(Exception):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -74,7 +74,6 @@ class JingleTransport:
|
||||||
"""
|
"""
|
||||||
Build a candidate stanza for the given candidate
|
Build a candidate stanza for the given candidate
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
def make_transport(self, candidates=None):
|
def make_transport(self, candidates=None):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -585,7 +585,6 @@ class ConsoleView(Gtk.TextView):
|
||||||
"""
|
"""
|
||||||
For some reason we can't extend onKeyPress directly (bug #500900)
|
For some reason we can't extend onKeyPress directly (bug #500900)
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
class IPythonView(ConsoleView, IterableIPShell):
|
class IPythonView(ConsoleView, IterableIPShell):
|
||||||
'''
|
'''
|
||||||
|
|
|
@ -574,7 +574,6 @@ class TimeoutDialog:
|
||||||
"""
|
"""
|
||||||
To be implemented in derivated classes
|
To be implemented in derivated classes
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
def countdown(self):
|
def countdown(self):
|
||||||
if self.countdown_enabled:
|
if self.countdown_enabled:
|
||||||
|
|
|
@ -649,7 +649,6 @@ class InputDialog(CommonInputDialog):
|
||||||
'''
|
'''
|
||||||
may be implemented by subclasses
|
may be implemented by subclasses
|
||||||
'''
|
'''
|
||||||
pass
|
|
||||||
|
|
||||||
def set_entry(self, value):
|
def set_entry(self, value):
|
||||||
self.input_entry.set_text(value)
|
self.input_entry.set_text(value)
|
||||||
|
|
|
@ -908,7 +908,6 @@ class AgentBrowser:
|
||||||
"""
|
"""
|
||||||
Called when the default theme is changed
|
Called when the default theme is changed
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
def on_browse_button_clicked(self, widget=None):
|
def on_browse_button_clicked(self, widget=None):
|
||||||
"""
|
"""
|
||||||
|
@ -1095,7 +1094,6 @@ class AgentBrowser:
|
||||||
|
|
||||||
def _update_error(self, iter_, jid, node):
|
def _update_error(self, iter_, jid, node):
|
||||||
'''Called when a disco#info query failed for an item.'''
|
'''Called when a disco#info query failed for an item.'''
|
||||||
pass
|
|
||||||
|
|
||||||
|
|
||||||
class ToplevelAgentBrowser(AgentBrowser):
|
class ToplevelAgentBrowser(AgentBrowser):
|
||||||
|
|
|
@ -78,8 +78,9 @@ class MessageControl:
|
||||||
"""
|
"""
|
||||||
Called when the control becomes active (state is True) or inactive (state
|
Called when the control becomes active (state is True) or inactive (state
|
||||||
is False)
|
is False)
|
||||||
|
|
||||||
|
Derived classes MUST implement this method
|
||||||
"""
|
"""
|
||||||
pass # Derived classes MUST implement this method
|
|
||||||
|
|
||||||
def minimizable(self):
|
def minimizable(self):
|
||||||
"""
|
"""
|
||||||
|
@ -121,31 +122,26 @@ class MessageControl:
|
||||||
"""
|
"""
|
||||||
Derived classes SHOULD implement this
|
Derived classes SHOULD implement this
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
def update_ui(self):
|
def update_ui(self):
|
||||||
"""
|
"""
|
||||||
Derived classes SHOULD implement this
|
Derived classes SHOULD implement this
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
def toggle_emoticons(self):
|
def toggle_emoticons(self):
|
||||||
"""
|
"""
|
||||||
Derived classes MAY implement this
|
Derived classes MAY implement this
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
def update_font(self):
|
def update_font(self):
|
||||||
"""
|
"""
|
||||||
Derived classes SHOULD implement this
|
Derived classes SHOULD implement this
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
def update_tags(self):
|
def update_tags(self):
|
||||||
"""
|
"""
|
||||||
Derived classes SHOULD implement this
|
Derived classes SHOULD implement this
|
||||||
"""
|
"""
|
||||||
pass
|
|
||||||
|
|
||||||
def get_tab_label(self, chatstate):
|
def get_tab_label(self, chatstate):
|
||||||
"""
|
"""
|
||||||
|
@ -157,7 +153,6 @@ class MessageControl:
|
||||||
"""
|
"""
|
||||||
# Return a markup'd label and optional Gtk.Color in a tuple like:
|
# Return a markup'd label and optional Gtk.Color in a tuple like:
|
||||||
# return (label_str, None)
|
# return (label_str, None)
|
||||||
pass
|
|
||||||
|
|
||||||
def get_tab_image(self, count_unread=True):
|
def get_tab_image(self, count_unread=True):
|
||||||
# Return a suitable tab image for display.
|
# Return a suitable tab image for display.
|
||||||
|
|
|
@ -42,7 +42,6 @@ class GajimPluginActivateException(Exception):
|
||||||
'''
|
'''
|
||||||
Raised when activation failed
|
Raised when activation failed
|
||||||
'''
|
'''
|
||||||
pass
|
|
||||||
|
|
||||||
class log_calls:
|
class log_calls:
|
||||||
'''
|
'''
|
||||||
|
|
Loading…
Reference in New Issue