mailr9451 - /branches/multi_processor_merge/multi/processor.py


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

Header


Content

Posted by edward on September 03, 2009 - 15:03:
Author: bugman
Date: Thu Sep  3 15:03:52 2009
New Revision: 9451

URL: http://svn.gna.org/viewcvs/relax?rev=9451&view=rev
Log:
Manually changed a call to type() to isinstance().

This was because the following command failed:
2to3 -f types ./multi/processor.py


Modified:
    branches/multi_processor_merge/multi/processor.py

Modified: branches/multi_processor_merge/multi/processor.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/multi_processor_merge/multi/processor.py?rev=9451&r1=9450&r2=9451&view=diff
==============================================================================
--- branches/multi_processor_merge/multi/processor.py (original)
+++ branches/multi_processor_merge/multi/processor.py Thu Sep  3 15:03:52 2009
@@ -356,7 +356,7 @@
         else:
             (exception_type, exception_instance, exception_traceback) = 
exc_info
         #PY3K: this check can be removed once string based exceptions are no 
longer used
-       if type(exception_type) == str:
+        if isinstance(exception_type, str):
                 self.exception_name = exception_type + ' (legacy string 
exception)'
                 self.exception_string = exception_type
         else:




Related Messages


Powered by MHonArc, Updated Thu Sep 03 15:20:04 2009