Revision 7006
Added by Aaron Marcuse-Kubitza about 12 years ago
lib/xml_func.py | ||
---|---|---|
93 | 93 |
|
94 | 94 |
def is_xml_func(node): return is_xml_func_name(node.tagName) |
95 | 95 |
|
96 |
def is_scalar(value): return scalar.is_scalar(value) and not is_var_name(value) |
|
96 |
def is_scalar(value): |
|
97 |
return scalar.is_scalar(value) and not (util.is_str(value) |
|
98 |
and is_var_name(value)) |
|
97 | 99 |
|
98 | 100 |
def passthru(node): |
99 | 101 |
'''Passes through single child node. First prunes the node.''' |
Also available in: Unified diff
xml_func.py: is_scalar(): Fixed bug where need to check if value is a string before calling is_var_name()