From 841f6e131dbe9fa12a2bea0ad565d00a0df2664e Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Mon, 4 Jun 2018 15:03:39 +0200 Subject: [PATCH] Remove unnecessary parens --- bumblebee/modules/shortcut.py | 2 +- bumblebee/modules/title.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bumblebee/modules/shortcut.py b/bumblebee/modules/shortcut.py index 2ec6ab3..5c25cfb 100644 --- a/bumblebee/modules/shortcut.py +++ b/bumblebee/modules/shortcut.py @@ -49,7 +49,7 @@ class Module(bumblebee.engine.Module): num_shortcuts = min(len(cmds), len(labels)) # report possible problem as a warning - if (len(cmds) is not len(labels)): + if len(cmds) is not len(labels): logging.warning("shortcut: the number of commands does not match "\ "the number of provided labels.") logging.warning("cmds : %s, labels : %s", cmds, labels) diff --git a/bumblebee/modules/title.py b/bumblebee/modules/title.py index 65a3277..efa529f 100644 --- a/bumblebee/modules/title.py +++ b/bumblebee/modules/title.py @@ -66,7 +66,7 @@ class Module(bumblebee.engine.Module): except Exception: self._full_title = no_title - if(self._full_title is None): + if self._full_title is None: self._full_title = no_title # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4