Skip to content

Commit

Permalink
Merge pull request #1690 from mikacousin/0.10.8
Browse files Browse the repository at this point in the history
Update to Python 3.9
  • Loading branch information
peternewman committed Dec 7, 2020
2 parents 1965826 + 01bd599 commit 1853b4c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions python/ola/OlaClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -1172,8 +1172,7 @@ def UpdateDmxData(self, controller, request, callback):
return False

if request.universe in self._universe_callbacks:
data = array.array('B')
data.fromstring(request.data)
data = array.array('B', request.data)
self._universe_callbacks[request.universe](data)
response = Ola_pb2.Ack()
callback(response)
Expand Down Expand Up @@ -1477,8 +1476,7 @@ def _GetDmxComplete(self, callback, controller, response):
universe = None

if status.Succeeded():
data = array.array('B')
data.fromstring(response.data)
data = array.array('B', response.data)
universe = response.universe

callback(status, universe, data)
Expand Down

0 comments on commit 1853b4c

Please sign in to comment.