Project

General

Profile

« Previous | Next » 

Revision 4036

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.

View differences:

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