[tor-commits] [ooni-probe/master] Make loading of daphn3 yaml files use safe_load instead of load
art at torproject.org
art at torproject.org
Mon Nov 12 19:20:52 UTC 2012
commit fde7002bb62a89a1061b957d74b3af4fb6022121
Author: Arturo Filastò <art at fuffa.org>
Date: Mon Nov 12 20:20:00 2012 +0100
Make loading of daphn3 yaml files use safe_load instead of load
---
ooni/kit/daphn3.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ooni/kit/daphn3.py b/ooni/kit/daphn3.py
index 8d655c3..36de664 100644
--- a/ooni/kit/daphn3.py
+++ b/ooni/kit/daphn3.py
@@ -69,7 +69,7 @@ def read_pcap(filename):
def read_yaml(filename):
f = open(filename)
- obj = yaml.load(f)
+ obj = yaml.safe_load(f)
f.close()
return obj
More information about the tor-commits
mailing list