Commit b84135b5 authored by Tristan Cavelier's avatar Tristan Cavelier

"fix" double slash issue

parent dcd7ccab
......@@ -70,7 +70,7 @@ def valueDefaultSearchTextRenderer(value):
This is just repr, but always surrounding text strings with doublequotes.
"""
if isinstance(value, basestring):
result = '"%s"' % (value.replace('\\', '\\\\').replace('"', '\\"'), )
result = '"{}"'.format(value.replace('"', '\\"'))
else:
result = repr(value)
return result
......
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