Browse Source

Python3: exec() now expects a string, not a file.

Nick Mathewson 5 years ago
parent
commit
dce899f132
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/chutney/TorNet.py

+ 1 - 1
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