From 9f511fe18c25343bb0b5f8a0bc064b32ca997663 Mon Sep 17 00:00:00 2001 From: Justin Partain Date: Thu, 26 Oct 2017 13:00:07 -0400 Subject: [PATCH] pylint fix, change if len(text) to if text --- qutebrowser/mainwindow/statusbar/command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qutebrowser/mainwindow/statusbar/command.py b/qutebrowser/mainwindow/statusbar/command.py index ebe48a050..5fcb3bee9 100644 --- a/qutebrowser/mainwindow/statusbar/command.py +++ b/qutebrowser/mainwindow/statusbar/command.py @@ -249,6 +249,6 @@ class Command(misc.MinimalLineEditMixin, misc.CommandLineEdit): '?': 'search -r -- ', } - # len(text) check is for when user presses - if self.prefix() in '/?' and len(text) != 0: + # `if text` check is for when user presses and `len(text)` is 0 + if self.prefix() in '/?' and text: self.got_cmd[str].emit(search_prefixes[text[0]] + text[1:])