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

Formulator: fix search on python3

parent 811b98ad
......@@ -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