From e3364e0fddfd85685df0c002fd3e58587caca124 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sun, 17 Aug 2003 06:28:05 +0000 Subject: [PATCH] string_escape is better than unicode_escape. --- src/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.py b/src/utils.py index 95198cf39..15fb1ab62 100755 --- a/src/utils.py +++ b/src/utils.py @@ -211,7 +211,7 @@ def dqrepr(s): """Returns a repr() of s guaranteed to be in double quotes.""" # The wankers-that-be decided not to use double-quotes anymore in 2.3. # return '"' + repr("'\x00" + s)[6:] - return '"%s"' % s.encode('unicode_escape').replace('"', '\\"') + return '"%s"' % s.encode('string_escape').replace('"', '\\"') nonEscapedSlashes = re.compile(r'(?