Author: tack
Date: Sun Feb 17 15:49:38 2008
New Revision: 3114

Log:
Avoid cmp


Modified:
   trunk/base/src/notifier/coroutine.py

Modified: trunk/base/src/notifier/coroutine.py
==============================================================================
--- trunk/base/src/notifier/coroutine.py        (original)
+++ trunk/base/src/notifier/coroutine.py        Sun Feb 17 15:49:38 2008
@@ -129,7 +129,7 @@
                         # InProgress return that is already finished, go on
                         async = result
                         continue
-                elif result != NotFinished:
+                elif result is not NotFinished:
                     # everything went fine, return result in an InProgress
                     ip = InProgress()
                     ip.finish(result)
@@ -167,7 +167,7 @@
         self._interval = interval
         self._async = None
         self._valid = True
-        if progress == NotFinished:
+        if progress is NotFinished:
             # coroutine was stopped NotFinished, start the step timer
             self._timer.start(interval)
         elif isinstance(progress, InProgress):
@@ -200,7 +200,7 @@
                         self._async = result
                         result.connect_both(self._continue, self._continue)
                         return False
-                elif result == NotFinished:
+                elif result is NotFinished:
                     # schedule next interation with the timer
                     return True
                 else:

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog

Reply via email to