Skip to content

Commit c98a285

Browse files
author
Joshua Harlow
committed
At exit register takes *args and **kwargs not args and kargs
1 parent d780c64 commit c98a285

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)