Revision 3798
Added by Aaron Marcuse-Kubitza over 12 years ago
xml_func.py | ||
---|---|---|
171 | 171 |
try: |
172 | 172 |
left = items['left'] |
173 | 173 |
right = items['right'] |
174 |
except KeyError: return '' # a value was None
|
|
174 |
except KeyError: return '' # a value was not mapped to
|
|
175 | 175 |
return util.bool2str(left == right) |
176 | 176 |
funcs['_eq'] = _eq |
177 | 177 |
|
Also available in: Unified diff
xml_func.py: _eq(): Documented that '' (empty node) is returned if a value was not mapped to, not if a value was None, since None arguments are no longer removed by process() (now XML functions do this manually with conv_items())