Fix customConstructor to work correctly with newargs
This commit is contained in:
1 parent
3dd8c2cda6
commit
f77a8b9e17
1 file changed
+1
@@ -551,6 +551,7 @@ def customConstructor( constructors, argStr ):
|
|||||||
params.update( kwargs )
|
params.update( kwargs )
|
||||||
if not newargs:
|
if not newargs:
|
||||||
cls.__init__( self, name, *args, **params )
|
cls.__init__( self, name, *args, **params )
|
||||||
|
return
|
||||||
if args:
|
if args:
|
||||||
warn( 'warning: %s replacing %s with %s\n' %
|
warn( 'warning: %s replacing %s with %s\n' %
|
||||||
( constructor, args, newargs ) )
|
( constructor, args, newargs ) )
|
||||||
|
|||||||
Reference in new issue
Block a user