mailr6256 - /branches/singleton_fixing/data/__init__.py


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

Header


Content

Posted by edward on May 22, 2008 - 17:32:
Author: bugman
Date: Thu May 22 17:26:09 2008
New Revision: 6256

URL: http://svn.gna.org/viewcvs/relax?rev=6256&view=rev
Log:
Fix for the relax data storage singleton.

The 'instance' class variable is now excluded in the '__repr__()' method.


Modified:
    branches/singleton_fixing/data/__init__.py

Modified: branches/singleton_fixing/data/__init__.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/singleton_fixing/data/__init__.py?rev=6256&r1=6255&r2=6256&view=diff
==============================================================================
--- branches/singleton_fixing/data/__init__.py (original)
+++ branches/singleton_fixing/data/__init__.py Thu May 22 17:26:09 2008
@@ -82,7 +82,7 @@
         text = text + "\n"
         text = text + "Objects:\n"
         for name in dir(self):
-            if match("^_", name) or name in dict.__dict__ or name == 'add':
+            if match("^_", name) or name in dict.__dict__ or name == 'add' 
or name == 'instance':
                 continue
             text = text + "  %s: %s\n" % (name, `getattr(self, name)`)
 




Related Messages


Powered by MHonArc, Updated Thu May 22 17:40:22 2008