mirror of
https://github.com/davidhalter/parso.git
synced 2025-12-28 06:56:57 +08:00
When debugging print
This commit is contained in:
@@ -380,6 +380,7 @@ def _print_tokens(func):
|
||||
"""
|
||||
def wrapper(*args, **kwargs):
|
||||
for token in func(*args, **kwargs):
|
||||
print(token) # This print is intentional for debugging!
|
||||
yield token
|
||||
|
||||
return wrapper
|
||||
|
||||
Reference in New Issue
Block a user