Bug 821324 - actually return a success value from replaceFileIfChanged; r=bz
authorNathan Froyd <froydnj@mozilla.com>
Thu, 13 Dec 2012 11:26:33 -0500
changeset 115976 d40e4d1abffd9192c1edf0a61913eb7a23a80284
parent 115975 ea2a1011fdb5262e0e077c7389cd5ffefb3b9904
child 115977 d0dca968428b85bee110c86e2a2c980ad7fe19f9
push id24034
push useremorley@mozilla.com
push dateFri, 14 Dec 2012 15:28:57 +0000
treeherdermozilla-central@50d8f411d305 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbz
bugs821324
milestone20.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 821324 - actually return a success value from replaceFileIfChanged; r=bz
dom/bindings/Codegen.py
--- a/dom/bindings/Codegen.py
+++ b/dom/bindings/Codegen.py
@@ -34,16 +34,17 @@ def replaceFileIfChanged(filename, newCo
         pass
 
     if newContents == oldFileContents:
         return False
 
     f = open(filename, 'wb')
     f.write(newContents)
     f.close()
+    return True
 
 def toStringBool(arg):
     return str(not not arg).lower()
 
 def toBindingNamespace(arg):
     return re.sub("((_workers)?$)", "Binding\\1", arg);
 
 class CGThing():