Skip to content

Commit 524fbb5

Browse files
committed
Merge pull request #318 from harlowja/fix-at-exit-register
At exit register takes *args and **kwargs not args and kargs
2 parents e228ed2 + c98a285 commit 524fbb5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

kazoo/python2atexit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def register(func, *targs, **kargs):
4545
func is returned to facilitate usage as a decorator.
4646
"""
4747
if hasattr(atexit, "unregister"):
48-
atexit.register(func, targs, kargs)
48+
atexit.register(func, *targs, **kargs)
4949
else:
5050
_exithandlers.append((func, targs, kargs))
5151
return func

0 commit comments

Comments
 (0)