Commit eefc266b authored by Jérome Perrin's avatar Jérome Perrin Committed by Arnaud Fontaine

Formulator: fix search on python3

parent d08488fd
......@@ -456,7 +456,7 @@ class Field:
return obj.method_name
elif obj_type is TALESField.TALESMethod:
return obj._text
elif obj_type is six.text_type:
elif six.PY2 and obj_type is six.text_type:
return obj.encode('utf-8')
return str(obj)
return ' '.join(map(getSearchSource,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment