Author: dmeyer
Date: Wed Feb 13 16:22:47 2008
New Revision: 3085

Log:
remove deprecated code from YieldCallback

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        Wed Feb 13 16:22:47 2008
@@ -75,8 +75,8 @@
 class YieldCallback(InProgress):
     """
     Callback class that can be used as a callback for a function that is
-    async. Return this object using 'yield' and use the member function
-    'get' later to get the result.
+    async. Return this object using 'yield' and use get_result() later.
+    You can also use result = yield YieldCallback object for Python 2.5.
     """
     def __init__(self, func=None):
         InProgress.__init__(self)
@@ -111,11 +111,6 @@
         return self.finished(None)
 
 
-    def get(self):
-        log.warning('Deprecated call to YieldCallback.get(); use get_result() 
instead')
-        return InProgress.get_result(self)
-
-
 # variable to detect if send is possible with a generator
 _python25 = sys.version.split()[0] > '2.4'
 

-------------------------------------------------------------------------
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