Commit 47dae61e authored by Philipp Hörist's avatar Philipp Hörist

Fix unnecessary-pass pylint errors

parent 3b221177
......@@ -131,7 +131,6 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
"""
Derived types SHOULD implement this
"""
pass
def update_ui(self):
"""
......@@ -149,13 +148,11 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
"""
Derived types MAY implement this
"""
pass
def _update_toolbar(self):
"""
Derived types MAY implement this
"""
pass
def _nec_our_status(self, obj):
if self.account != obj.conn.name:
......@@ -698,7 +695,6 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
"""
Derived types SHOULD implement this
"""
pass
def _on_drag_leave(self, *args):
# 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.
"""
pass
class CommandError(BaseError):
"""
Used to indicate errors occurred during command execution.
"""
pass
class NoCommandError(BaseError):
"""
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
command will not be executed.
"""
pass
def command_postprocessor(self, cmd, name, arguments, args, kwargs, value):
"""
Redefine this method in the subclass to execute custom code
after command gets executed.
"""
pass
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
process_as_command.
"""
pass
def get_command(self, name):
cmd = get_command(self.COMMAND_HOST, name)
......
......@@ -97,13 +97,11 @@ class NegotiationError(Exception):
"""
A session negotiation failed
"""
pass
class Cancelled(Exception):
"""
The user cancelled an operation
"""
pass
class LatexError(Exception):
"""
......
......@@ -74,7 +74,6 @@ class JingleTransport:
"""
Build a candidate stanza for the given candidate
"""
pass
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)
"""
pass
class IPythonView(ConsoleView, IterableIPShell):
'''
......
......@@ -574,7 +574,6 @@ class TimeoutDialog:
"""
To be implemented in derivated classes
"""
pass
def countdown(self):
if self.countdown_enabled:
......
......@@ -649,7 +649,6 @@ class InputDialog(CommonInputDialog):
'''
may be implemented by subclasses
'''
pass
def set_entry(self, value):
self.input_entry.set_text(value)
......
......@@ -908,7 +908,6 @@ class AgentBrowser:
"""
Called when the default theme is changed
"""
pass
def on_browse_button_clicked(self, widget=None):
"""
......@@ -1095,7 +1094,6 @@ class AgentBrowser:
def _update_error(self, iter_, jid, node):
'''Called when a disco#info query failed for an item.'''
pass
class ToplevelAgentBrowser(AgentBrowser):
......
......@@ -78,8 +78,9 @@ class MessageControl:
"""
Called when the control becomes active (state is True) or inactive (state
is False)
Derived classes MUST implement this method
"""
pass # Derived classes MUST implement this method
def minimizable(self):
"""
......@@ -121,31 +122,26 @@ class MessageControl:
"""
Derived classes SHOULD implement this
"""
pass
def update_ui(self):
"""
Derived classes SHOULD implement this
"""
pass
def toggle_emoticons(self):
"""
Derived classes MAY implement this
"""
pass
def update_font(self):
"""
Derived classes SHOULD implement this
"""
pass
def update_tags(self):
"""
Derived classes SHOULD implement this
"""
pass
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 (label_str, None)
pass
def get_tab_image(self, count_unread=True):
# Return a suitable tab image for display.
......
......@@ -42,7 +42,6 @@ class GajimPluginActivateException(Exception):
'''
Raised when activation failed
'''
pass
class log_calls:
'''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment