diff --git a/src/utils.py b/src/utils.py index 3154ceef7..cc05b880b 100755 --- a/src/utils.py +++ b/src/utils.py @@ -210,12 +210,9 @@ def dqrepr(s): # return '"' + repr("'\x00" + s)[6:] return '"%s"' % s.encode('string_escape').replace('"', '\\"') -#XXX We're using this to centralize how we quote a string since %r/repr() -# doesn't play nicely with unicode characters. This eventually needs to be -# replaced to *not* use repr() def quoted(s): """Returns a quoted s.""" - return repr(s) + return '"%s"' % s nonEscapedSlashes = re.compile(r'(?