Revision 4036
Added by Aaron Marcuse-Kubitza over 12 years ago
lib/xml_func.py | ||
---|---|---|
214 | 214 |
#### Quantities |
215 | 215 |
|
216 | 216 |
def _units(items, node): |
217 |
items = conv_items(strings.ustr, items) # get *once* from iter, check types |
|
218 | 217 |
value = pop_value(items) |
219 | 218 |
if value == None: return None # input is empty |
220 | 219 |
|
Also available in: Unified diff
xml_func.py: _units(): Don't remove None params, because are valid values and must be supported. This will become an issue once empty strings in text nodes are considered equivalent to None.