Skip to content
Snippets Groups Projects
Commit f77a8b9e authored by Bob Lantz's avatar Bob Lantz
Browse files

Fix customConstructor to work correctly with newargs

parent 3dd8c2cd
No related branches found
No related tags found
No related merge requests found
......@@ -551,10 +551,11 @@ def __init__( self, name, *args, **params ):
params.update( kwargs )
if not newargs:
cls.__init__( self, name, *args, **params )
return
if args:
warn( 'warning: %s replacing %s with %s\n' %
( constructor, args, newargs ) )
cls.__init__( self, name, *newargs, **params )
cls.__init__( self, name, *newargs, **params )
CustomClass.__name__ = '%s%s' % ( cls.__name__, kwargs )
return CustomClass
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment