Commits

Jurko Gospodnetić committed 85f2b43

Remove usage of the deprecated module 'new'.

The 'new' module has been deprecated since Python 2.6; the built-in function
'type' can be used instead of 'new.classobj'.

  • Participants
  • Parent commits a311691
  • Branches Python 3 support

Comments (0)

Files changed (1)

suds/sudsobject.py

 
 from logging import getLogger
 from suds import *
-from new import classobj
 
 log = getLogger(__name__)
 
         key = '.'.join((name, str(bases)))
         subclass = cls.cache.get(key)
         if subclass is None:
-            subclass = classobj(name, bases, dict)
+            subclass = type(name, bases, dict)
             cls.cache[key] = subclass
         return subclass