mailr13586 - /branches/gui_testing/observer.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on July 13, 2011 - 14:27:
Author: bugman
Date: Wed Jul 13 14:27:39 2011
New Revision: 13586

URL: http://svn.gna.org/viewcvs/relax?rev=13586&view=rev
Log:
The Observer object no longer uses __init__() to setup structures as the 
singleton design kills it.


Modified:
    branches/gui_testing/observer.py

Modified: branches/gui_testing/observer.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/gui_testing/observer.py?rev=13586&r1=13585&r2=13586&view=diff
==============================================================================
--- branches/gui_testing/observer.py (original)
+++ branches/gui_testing/observer.py Wed Jul 13 14:27:39 2011
@@ -30,11 +30,8 @@
 class Observer(object):
     """The observer design pattern base class."""
 
-    def __init__(self):
-        """Set up the object."""
-
-        # The dictionary of callback methods.
-        self._callback = {}
+    # The dictionary of callback methods.
+    _callback = {}
 
 
     def notify_observers(self):




Related Messages


Powered by MHonArc, Updated Wed Jul 13 15:20:02 2011