mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-17 04:51:26 +08:00
small debug change
This commit is contained in:
1 parent
89ab0ba137
commit
868dab4f51
1 file changed
+4
-2
+4
-2
@@ -48,8 +48,10 @@ def increase_indent(func):
|
||||
def wrapper(*args, **kwargs):
|
||||
global _debug_indent
|
||||
_debug_indent += 1
|
||||
result = func(*args, **kwargs)
|
||||
_debug_indent -= 1
|
||||
try:
|
||||
result = func(*args, **kwargs)
|
||||
finally:
|
||||
_debug_indent -= 1
|
||||
return result
|
||||
return wrapper
|
||||
|
||||
|
||||
Reference in new issue
Block a user