Commits

Pavel Zhukov committed 917e1d3

fixing deprecation warning

  • Participants
  • Parent commits a98d9cc

Comments (0)

Files changed (1)

SOAPpy/wstools/XMLSchema.py

     """Tuple of length 2, consisting of
        a namespace and unprefixed name.
     """
-    def __init__(self, args):
+    def __new__(self, args):
         """args -- (namespace, name)
            Remove the name's prefix, irrelevant.
         """
             raise TypeError, 'expecting tuple (namespace, name), got %s' %args
         elif args[1].find(':') >= 0:
             args = (args[0], SplitQName(args[1])[1])
-        tuple.__init__(self, args)
+        #tuple.__init__(self, args)
+        super(TypeDescriptionComponent, self).__new__(tuple, args)
         return
 
     def getTargetNamespace(self):