[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] Make loading of daphn3 yaml files use safe_load instead of load
commit fde7002bb62a89a1061b957d74b3af4fb6022121
Author: Arturo Filastò <art@xxxxxxxxx>
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
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits