No bug - Fix stupid bug because I don't know Python; hat-tip=tbsaunde (NPOTB, DONTBUILD)
authorMs2ger <ms2ger@gmail.com>
Sun, 30 Sep 2012 21:24:25 +0200
changeset 108796 490b19dde4762606c38ced844a2b29317d4a7071
parent 108795 a4ea3c56646b4a6c8e811c2bd2040928bcd42241
child 108812 31ae286fff781d9cedf951358c19750543740bc7
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
milestone18.0a1
No bug - Fix stupid bug because I don't know Python; hat-tip=tbsaunde (NPOTB, DONTBUILD)
dom/imptests/parseFailures.py
--- a/dom/imptests/parseFailures.py
+++ b/dom/imptests/parseFailures.py
@@ -28,17 +28,17 @@ def ensuredir(path):
 
 def dumpFailures(lines):
     files = []
     for url, objstr in lines:
         if objstr == '{}\n':
             continue
 
         # Avoid overly large diffs.
-        if url.contains("/editing/"):
+        if '/editing/' in url:
             sep = ':'
         else:
             sep = ': '
 
         jsonpath = 'failures/' + url + '.json'
         files.append(jsonpath)
         ensuredir(jsonpath)
         obj = json.loads(objstr, object_pairs_hook=collections.OrderedDict)