Author: bugman Date: Tue Feb 23 18:31:03 2010 New Revision: 10865 URL: http://svn.gna.org/viewcvs/relax?rev=10865&view=rev Log: The Info_box is now really a singleton - a bug in __new__() has been eliminated. Modified: 1.3/info.py Modified: 1.3/info.py URL: http://svn.gna.org/viewcvs/relax/1.3/info.py?rev=10865&r1=10864&r2=10865&view=diff ============================================================================== --- 1.3/info.py (original) +++ 1.3/info.py Tue Feb 23 18:31:03 2010 @@ -32,7 +32,7 @@ -class Info_box: +class Info_box(object): """A container storing information about relax.""" # Class variable for storing the class instance. @@ -85,7 +85,7 @@ # First initialisation. if self.instance is None: - self.instance = dict.__new__(self, *args, **kargs) + self.instance = object.__new__(self, *args, **kargs) # Already initialised, so return the instance. return self.instance