changeset 21539:0c4077905932

run-tests: assign value to ESCAPEMAP - dict.update do not return self a36cc85a5b7b did more than what the description said and introduced a bug.
author Mads Kiilerich <madski@unity3d.com>
date Sun, 25 May 2014 13:47:42 +0200
parents 05925bb5f95a
children 6062593d8b06
files tests/run-tests.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/run-tests.py	Sun May 25 13:47:19 2014 +0200
+++ b/tests/run-tests.py	Sun May 25 13:47:42 2014 +0200
@@ -686,8 +686,8 @@
     NEEDESCAPE = re.compile(r'[\x00-\x08\x0b-\x1f\x7f-\xff]').search
 
     ESCAPESUB = re.compile(r'[\x00-\x08\x0b-\x1f\\\x7f-\xff]').sub
-    ESCAPEMAP = dict((chr(i), r'\x%02x' % i) for i in range(256)).update(
-                     {'\\': '\\\\', '\r': r'\r'})
+    ESCAPEMAP = dict((chr(i), r'\x%02x' % i) for i in range(256))
+    ESCAPEMAP.update({'\\': '\\\\', '\r': r'\r'})
 
     @property
     def refpath(self):