소스 검색

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):