[pitivi] reciever: use is to compare with None, using != throws exception in some cases
- From: Edward Hervey <edwardrv src gnome org>
- To: svn-commits-list gnome org
- Subject: [pitivi] reciever: use is to compare with None, using != throws exception in some cases
- Date: Wed, 24 Jun 2009 14:01:21 +0000 (UTC)
commit 044dad4bc216fd6e85178990252f38e5de74f8c3
Author: Brandon Lewis <brandon_lewis berkeley edu>
Date: Fri May 29 16:38:48 2009 -0700
reciever: use is to compare with None, using != throws exception in some cases
pitivi/receiver.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/pitivi/receiver.py b/pitivi/receiver.py
index 078163b..f044777 100644
--- a/pitivi/receiver.py
+++ b/pitivi/receiver.py
@@ -40,7 +40,7 @@ class receiver(object):
instance._receiver_data[self].sender.disconnect(sid)
rd.sender = None
rd.sigids = {}
- if value != None:
+ if not (value is None):
for sig, hdlr in self.handlers.iteritems():
rd.sigids[sig] = value.connect(sig, MethodType(hdlr,
instance))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]