Backed out 2 changesets (bug 1848257, bug 1848254) for causing multiple failures...
[gecko.git] / devtools / rename.py
blob04d613742ecdf305fd6fa52287b35901d43ef841
1 # -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2 # vim: set filetype=python:
3 # This Source Code Form is subject to the terms of the Mozilla Public
4 # License, v. 2.0. If a copy of the MPL was not distributed with this
5 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 # Put the content of `filenames[0]` file into `output` file pointer
8 def main(output, *filenames):
9 with open(filenames[0], "r", encoding="utf-8") as f:
10 content = f.read()
11 output.write(content)