зеркало из https://github.com/mozilla/gecko-dev.git
Bug 821324 - actually return a success value from replaceFileIfChanged; r=bz
This commit is contained in:
Родитель
09a15134f5
Коммит
a25af0c2e0
|
@ -39,6 +39,7 @@ def replaceFileIfChanged(filename, newContents):
|
|||
f = open(filename, 'wb')
|
||||
f.write(newContents)
|
||||
f.close()
|
||||
return True
|
||||
|
||||
def toStringBool(arg):
|
||||
return str(not not arg).lower()
|
||||
|
|
Загрузка…
Ссылка в новой задаче