[totem/wip/hadess/pylint-warnings: 8/11] pythonconsole: Fix missing return



commit 0250dc3a35dca41683d28f2dfd3d180f84f7457e
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Nov 14 16:55:54 2018 +0100

    pythonconsole: Fix missing return
    
    Either all return statements in a function should return an expression, or none
    of them should. (inconsistent-return-statements)

 src/plugins/pythonconsole/console.py | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/plugins/pythonconsole/console.py b/src/plugins/pythonconsole/console.py
index 567f8e6c..efe997d5 100644
--- a/src/plugins/pythonconsole/console.py
+++ b/src/plugins/pythonconsole/console.py
@@ -202,6 +202,8 @@ class PythonConsole(Gtk.ScrolledWindow): # pylint: disable=R0902
                 buf.place_cursor(inp)
             return True
 
+        return False
+
     def __mark_set_cb(self, buf, _, name):
         inp = buf.get_iter_at_mark(buf.get_mark("input"))
         pos   = buf.get_iter_at_mark(buf.get_insert())


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]