mirror of
https://github.com/davidhalter/parso.git
synced 2026-10-23 21:27:05 +08:00
When debugging print
This commit is contained in:
1 parent
c86af743df
commit
12063d42fc
1 file changed
+1
@@ -380,6 +380,7 @@ def _print_tokens(func):
|
|||||||
"""
|
"""
|
||||||
def wrapper(*args, **kwargs):
|
def wrapper(*args, **kwargs):
|
||||||
for token in func(*args, **kwargs):
|
for token in func(*args, **kwargs):
|
||||||
|
print(token) # This print is intentional for debugging!
|
||||||
yield token
|
yield token
|
||||||
|
|
||||||
return wrapper
|
return wrapper
|
||||||
|
|||||||
Reference in new issue
Block a user