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