diff options
author | Paul Vinciguerra <pvinci@vinciconsulting.com> | 2018-11-27 01:32:42 -0800 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-11-28 16:34:30 +0000 |
commit | 5785e89ba15128f9659bf0b6f78559c63a70e285 (patch) | |
tree | 0294e33c9c023e5500527bd50afe5eb9a127408f /src/vpp-api/python | |
parent | 068ec3809c3f99ae59008fb14fcf45b08480e7d8 (diff) |
vpp_papi: Reserved keywords.
'async' and 'await' are reserved keywords starting with Python 3.7.
This change is necessary to support VPP-1508.
Change-Id: Iba2b3aef98a0ecaabc1622719b364f8f4ab5d5a3
Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/vpp-api/python')
-rw-r--r-- | src/vpp-api/python/vpp_papi/vpp_transport_shmem.py | 4 | ||||
-rw-r--r-- | src/vpp-api/python/vpp_papi/vpp_transport_socket.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/vpp-api/python/vpp_papi/vpp_transport_shmem.py b/src/vpp-api/python/vpp_papi/vpp_transport_shmem.py index 027d391df3e..5920cd16dcb 100644 --- a/src/vpp-api/python/vpp_papi/vpp_transport_shmem.py +++ b/src/vpp-api/python/vpp_papi/vpp_transport_shmem.py @@ -83,8 +83,8 @@ class VppTransport(object): def resume(self): vpp_api.vac_rx_resume() - def get_callback(self, async): - return vac_callback_sync if not async else vac_callback_async + def get_callback(self, do_async): + return vac_callback_sync if not do_async else vac_callback_async def get_msg_index(self, name): return vpp_api.vac_get_msg_index(name) diff --git a/src/vpp-api/python/vpp_papi/vpp_transport_socket.py b/src/vpp-api/python/vpp_papi/vpp_transport_socket.py index c2a706ab1da..29b4c658ca8 100644 --- a/src/vpp-api/python/vpp_papi/vpp_transport_socket.py +++ b/src/vpp-api/python/vpp_papi/vpp_transport_socket.py @@ -118,7 +118,7 @@ class VppTransport(object): def callback(self): raise NotImplemented - def get_callback(self, async): + def get_callback(self, do_async): return self.callback def get_msg_index(self, name): |