Commit b84135b5 authored by Tristan Cavelier's avatar Tristan Cavelier

"fix" double slash issue

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