run-tests: assign value to ESCAPEMAP - dict.update do not return self
authorMads Kiilerich <madski@unity3d.com>
Sun, 25 May 2014 13:47:42 +0200
changeset 21539 0c4077905932
parent 21538 05925bb5f95a
child 21541 6062593d8b06
run-tests: assign value to ESCAPEMAP - dict.update do not return self a36cc85a5b7b did more than what the description said and introduced a bug.
tests/run-tests.py
--- 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):