Skip to content

Commit 5da7f5c

Browse files
committed
Merged in kadler/python-itoolkit/srvpgmfix (pull request #2)
Fix iSrvPgm to pass iopt to iPgm super class
1 parent ad7f5cd commit 5da7f5c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

itoolkit/itoolkit.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,10 @@ class iSrvPgm (iPgm):
431431
]> ... </pgm>
432432
"""
433433
def __init__(self, ikey, iname, ifunc, iopt={}):
434+
iopt = iopt.copy()
435+
iopt['func'] = ifunc
434436
# parent class
435-
iPgm.__init__(self, ikey, iname, {'func':ifunc})
437+
iPgm.__init__(self, ikey, iname, iopt)
436438

437439
def addRet(self, obj):
438440
"""Add a return structure child node.

0 commit comments

Comments
 (0)