~edwargix/git.sr.ht

68fef2381c68e837fe3357e1f6b4a85894448761 — Drew DeVault 8 years ago 24b1fe3
Use yaml.safe_load over yaml.load
1 files changed, 1 insertions(+), 1 deletions(-)

M gitsrht/worker.py
M gitsrht/worker.py => gitsrht/worker.py +1 -1
@@ 50,7 50,7 @@ def do_post_update(repo, git_repo, ref):
        if manifest:
            manifest = git_repo.get(manifest.id)
            manifest = manifest.data.decode()
            manifest = Manifest(yaml.load(manifest))
            manifest = Manifest(yaml.safe_load(manifest))
            manifest.sources = [
                source if os.path.basename(source) != repo.name else source + "#" + str(ref)
                for source in manifest.sources