Project

General

Profile

« Previous | Next » 

Revision 1478

xml_func.py: _nullIf: types_by_name: Use strings.ustr instead of str to support Unicode values

View differences:

lib/xml_func.py
119 119

  
120 120
#### Transforming values
121 121

  
122
types_by_name = {None: str, 'str': str, 'float': float}
122
types_by_name = {None: strings.ustr, 'str': strings.ustr, 'float': float}
123 123

  
124 124
def _nullIf(items):
125 125
    items = dict(conv_items(str, items))

Also available in: Unified diff