Browse Source

Fix Python 3 compatibility

Yentl Van Tendeloo 5 years ago
parent
commit
547702e08d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      wrappers/modelverse.py

+ 1 - 1
wrappers/modelverse.py

@@ -654,7 +654,7 @@ def service_get(port):
     """Get the values on the specified port."""
 
     data = urlencode({"op": "get_output", "taskname": port}).encode()
-    val = json.loads(urlopen(Request("http://%s" % controller.address, data), timeout=99999).read())
+    val = json.loads(urlopen(Request("http://%s" % controller.address, data), timeout=99999).read().decode('utf-8'))
     return val
 
 def service_set(port, value):