Project

General

Profile

« Previous | Next » 

Revision 4037

xml_func.py: _map(): 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:

xml_func.py
192 192
        <last_entry> Value
193 193
        <other_entries> name=value Mappings. Special values: See repl() repls.
194 194
    '''
195
    items = conv_items(strings.ustr, items) # get *once* from iter, check types
196 195
    value = pop_value(items)
197 196
    if value == None: return None # input is empty
198 197
    return util.none_if(repl(dict(items), value), u'') # empty value means None

Also available in: Unified diff