aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp-api/python/vpp_papi/vpp_serializer.py
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2020-05-12 10:45:17 -0400
committerOle Tr�an <otroan@employees.org>2020-11-17 08:36:30 +0000
commit2e8760628d6f629ddaa0f24bb901e10dcdbd5435 (patch)
tree5005afeba661262ee67c05102389dcd7a334411c /src/vpp-api/python/vpp_papi/vpp_serializer.py
parentff1f089c3a395d9e519bbbf91e3a30737173b447 (diff)
papi: remove dependency on aenum
remove the dependency on the aenum package which was used to provide Enum.IntFlag which is now available in the python stdlib. aenum is not provided as a .deb and causes issues in packaging. Type: fix Change-Id: Ie45ec2130a767345f0aad038451780a5ddc7e8db Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/vpp-api/python/vpp_papi/vpp_serializer.py')
-rw-r--r--src/vpp-api/python/vpp_papi/vpp_serializer.py13
1 files changed, 2 insertions, 11 deletions
diff --git a/src/vpp-api/python/vpp_papi/vpp_serializer.py b/src/vpp-api/python/vpp_papi/vpp_serializer.py
index 09294875305..a5680335536 100644
--- a/src/vpp-api/python/vpp_papi/vpp_serializer.py
+++ b/src/vpp-api/python/vpp_papi/vpp_serializer.py
@@ -13,23 +13,14 @@
# limitations under the License.
#
import collections
+from enum import IntFlag
import logging
import socket
import struct
import sys
-if sys.version_info <= (3, 4):
- from aenum import IntEnum # noqa: F401
-else:
- from enum import IntEnum # noqa: F401
-
-if sys.version_info <= (3, 6):
- from aenum import IntFlag # noqa: F401
-else:
-
- from enum import IntFlag # noqa: F401
+from . import vpp_format
-from . import vpp_format # noqa: E402
#
# Set log-level in application by doing e.g.: