Преглед на файлове

Fix Python 3 compatibility

Yentl Van Tendeloo преди 7 години
родител
ревизия
547702e08d
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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):