mailr3281 - /1.2/errors.py


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

Header


Content

Posted by edward on May 07, 2007 - 23:40:
Author: bugman
Date: Mon May  7 23:39:31 2007
New Revision: 3281

URL: http://svn.gna.org/viewcvs/relax?rev=3281&view=rev
Log:
Fix for bug #9093.


Modified:
    1.2/errors.py

Modified: 1.2/errors.py
URL: 
http://svn.gna.org/viewcvs/relax/1.2/errors.py?rev=3281&r1=3280&r2=3281&view=diff
==============================================================================
--- 1.2/errors.py (original)
+++ 1.2/errors.py Mon May  7 23:39:31 2007
@@ -42,7 +42,7 @@
             object = getattr(self, name)
 
             # Skip over all non error class objects.
-            if type(object) != ClassType or not match('Relax', name):
+            if not (isinstance(object, ClassType) or isinstance(object, 
type(type))) or not match('Relax', name):
                 continue
 
             # Add the top level relax class:
@@ -676,7 +676,7 @@
             object = getattr(self, name)
 
             # Skip over all non-warning class objects.
-            if type(object) != ClassType or not match('Relax', name):
+            if not (isinstance(object, ClassType) or isinstance(object, 
type(type))) or not match('Relax', name):
                 continue
 
             # Place the warnings into __builtin__




Related Messages


Powered by MHonArc, Updated Tue May 08 00:00:06 2007