Tweaked debug.py
- Legacy-Id: 12238
This commit is contained in:
parent
0d62fdeb23
commit
6e46de45d4
4
debug.py
4
debug.py
|
@ -27,6 +27,8 @@ __version__ = "0.16"
|
|||
|
||||
increment = 2
|
||||
|
||||
debug = False
|
||||
|
||||
# Number of times to indent output
|
||||
# A list is used to force access by reference
|
||||
_report_indent = [4]
|
||||
|
@ -43,7 +45,7 @@ def trace(fn): # renamed from 'report' by henrik 16 Jun 2011
|
|||
again along with the return value when the function
|
||||
returns.
|
||||
"""
|
||||
def fix(s,n=36):
|
||||
def fix(s,n=64):
|
||||
import re
|
||||
s = re.sub(r'\\t', ' ', s)
|
||||
s = re.sub(r'\s+', ' ', s)
|
||||
|
|
Loading…
Reference in a new issue