Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Python 3.9 #1690

Merged
merged 2 commits into from Dec 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 2 additions & 4 deletions python/ola/OlaClient.py
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