[tor-commits] [chutney/master] Python3: exec() now expects a string, not a file.
nickm at torproject.org
nickm at torproject.org
Mon Mar 11 00:33:44 UTC 2019
commit dce899f1322c11735ab25e11278f5ac13575d804
Author: Nick Mathewson <nickm at torproject.org>
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
More information about the tor-commits
mailing list