##// END OF EJS Templates
add ignored *args to HasTraits constructor...
MinRK -
Show More
@@ -398,7 +398,7 b' class HasTraits(object):'
398 398
399 399 __metaclass__ = MetaHasTraits
400 400
401 def __new__(cls, **kw):
401 def __new__(cls, *args, **kw):
402 402 # This is needed because in Python 2.6 object.__new__ only accepts
403 403 # the cls argument.
404 404 new_meth = super(HasTraits, cls).__new__
@@ -425,7 +425,7 b' class HasTraits(object):'
425 425
426 426 return inst
427 427
428 def __init__(self, **kw):
428 def __init__(self, *args, **kw):
429 429 # Allow trait values to be set using keyword arguments.
430 430 # We need to use setattr for this to trigger validation and
431 431 # notifications.
General Comments 0
You need to be logged in to leave comments. Login now