Skip to content

Commit 2588ce5

Browse files
committed
fix kivy#3618 - add wraps decorator
1 parent fe79c34 commit 2588ce5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

kivy/uix/sandbox.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
__all__ = ('Sandbox', )
2626

27+
from functools import wraps
2728
from kivy.context import Context
2829
from kivy.base import ExceptionManagerBase
2930
from kivy.clock import Clock
@@ -34,6 +35,7 @@
3435

3536

3637
def sandbox(f):
38+
@wraps(f)
3739
def _f2(self, *args, **kwargs):
3840
ret = None
3941
with self:

0 commit comments

Comments
 (0)