1# This Source Code Form is subject to the terms of the Mozilla Public 2# License, v. 2.0. If a copy of the MPL was not distributed with this 3# file, You can obtain one at http://mozilla.org/MPL/2.0/. 4from __future__ import absolute_import 5 6import json 7 8 9def save_profile(profile, filename): 10 with open(filename, "w") as f: 11 json.dump(profile, f) 12