Commit ff0c9fd5 authored by Jérome Perrin's avatar Jérome Perrin

Formulator: fix search on python3

parent c78e1c97
......@@ -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