[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [chutney/master] Python3: exec() now expects a string, not a file.



commit dce899f1322c11735ab25e11278f5ac13575d804
Author: Nick Mathewson <nickm@xxxxxxxxxxxxxx>
Date:   Thu Feb 28 11:26:21 2019 -0500

    Python3: exec() now expects a string, not a file.
---
 lib/chutney/TorNet.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/chutney/TorNet.py b/lib/chutney/TorNet.py
index cc86960..8a2329a 100644
--- a/lib/chutney/TorNet.py
+++ b/lib/chutney/TorNet.py
@@ -1238,7 +1238,7 @@ def main():
 
     args = parseArgs()
     f = open(args['network_cfg'])
-    result = runConfigFile(args['action'], f)
+    result = runConfigFile(args['action'], f.read())
     if result is False:
         return -1
     return 0



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits