diff --git a/python/ola/OlaClient.py b/python/ola/OlaClient.py index 8ce794dacd..7ac3ed6180 100644 --- a/python/ola/OlaClient.py +++ b/python/ola/OlaClient.py @@ -1172,11 +1172,7 @@ def UpdateDmxData(self, controller, request, callback): return False if request.universe in self._universe_callbacks: - data = array.array('B') - if sys.version >= '3.2': - data.frombytes(request.data) - else: - data.fromstring(request.data) + data = array.array('B', request.data) self._universe_callbacks[request.universe](data) response = Ola_pb2.Ack() callback(response) @@ -1480,11 +1476,7 @@ def _GetDmxComplete(self, callback, controller, response): universe = None if status.Succeeded(): - data = array.array('B') - if sys.version >= '3.2': - data.frombytes(response.data) - else: - data.fromstring(response.data) + data = array.array('B', response.data) universe = response.universe callback(status, universe, data)