mirror of
https://github.com/Sei-Lisa/LSL-PyOptimizer
synced 2025-07-01 23:58:20 +00:00
Remove commented-out print_node function (superseded by nr.__str__)
This commit is contained in:
parent
fa73348dc6
commit
464797020a
1 changed files with 0 additions and 23 deletions
|
@ -120,26 +120,3 @@ LSLTypeDefaults = {'integer':0, 'float':0.0, 'string':u'', 'key':Key(u''),
|
||||||
def warning(txt):
|
def warning(txt):
|
||||||
assert type(txt) == unicode
|
assert type(txt) == unicode
|
||||||
sys.stderr.write(u"WARNING: " + txt + u"\n")
|
sys.stderr.write(u"WARNING: " + txt + u"\n")
|
||||||
|
|
||||||
# Debug function
|
|
||||||
#def print_node(node, indent = 0):
|
|
||||||
# nt = node['nt']
|
|
||||||
# write = sys.stdout.write
|
|
||||||
# spaces = ' ' * (indent*4+2)
|
|
||||||
# write('%s{ nt:%s\n' % (' '*(indent*4), nt))
|
|
||||||
# if 't' in node:
|
|
||||||
# write('%s,t:%s\n' % (spaces, node['t']))
|
|
||||||
# if 'name' in node:
|
|
||||||
# write('%s,name:%s\n' % (spaces, node['name']))
|
|
||||||
# if 'value' in node:
|
|
||||||
# write('%s,value:%s\n' % (spaces, repr(node['value'])))
|
|
||||||
#
|
|
||||||
# for prop in node:
|
|
||||||
# if prop not in ('ch', 'nt', 't', 'name', 'value','X','SEF'):
|
|
||||||
# write('%s,%s:%s\n' % (spaces, prop, repr(node[prop])))
|
|
||||||
# if 'ch' in node:
|
|
||||||
# write(spaces + ',ch:[\n')
|
|
||||||
# for subnode in node['ch']:
|
|
||||||
# print_node(subnode, indent+1)
|
|
||||||
# write(spaces + ']\n')
|
|
||||||
# write(' '*(indent*4) + '}\n\n')
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue