Author: bugman Date: Fri Sep 28 18:20:48 2012 New Revision: 17608 URL: http://svn.gna.org/viewcvs/relax?rev=17608&view=rev Log: Python 3 preparations - removed the use of the types.ClassType object. Modified: trunk/relax_errors.py Modified: trunk/relax_errors.py URL: http://svn.gna.org/viewcvs/relax/trunk/relax_errors.py?rev=17608&r1=17607&r2=17608&view=diff ============================================================================== --- trunk/relax_errors.py (original) +++ trunk/relax_errors.py Fri Sep 28 18:20:48 2012 @@ -36,7 +36,6 @@ from re import match import sys import time -from types import ClassType # relax module imports. import ansi @@ -1023,7 +1022,7 @@ object = globals()[name] # Skip over all non error class objects. - if not (isinstance(object, ClassType) or isinstance(object, type(type))) or not match('Relax', name): + if not (isinstance(object, type(RelaxError)) or isinstance(object, type(type))) or not match('Relax', name): continue # Tuple of all the errors.