[gnome-music] pep8: don't use != None (E711)
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music] pep8: don't use != None (E711)
- Date: Mon, 24 Mar 2014 11:45:53 +0000 (UTC)
commit 6b406617a13ae572510a5acd893d3dcc5e35e509
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date: Mon Mar 24 12:45:44 2014 +0100
pep8: don't use != None (E711)
gnomemusic/view.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index 94b57e0..04275fd 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -170,7 +170,7 @@ class ViewContainer(Stack):
else:
self.view.set_selection_mode(False)
self.header_bar.set_selection_mode(False)
- self.player.eventBox.set_visible(self.player.currentTrack != None)
+ self.player.eventBox.set_visible(self.player.currentTrack is not None)
self.selection_toolbar.eventbox.set_visible(False)
def _on_cancel_button_clicked(self, button):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]