diff options
author | Klement Sekera <ksekera@cisco.com> | 2017-09-28 06:31:53 +0200 |
---|---|---|
committer | Klement Sekera <ksekera@cisco.com> | 2017-09-28 06:31:53 +0200 |
commit | 958b750ceaf6c20466bc4e5605da39b4490847d9 (patch) | |
tree | 0255acbe301de4c74304ac68059ffb2e9c9974f0 /src/vpp-api/vapi/vapi_cpp_gen.py | |
parent | a3bae4edcd31919bcd9c5f48059532eb307837f4 (diff) |
drop python3 dependency
Change-Id: I99c2c1d0d5b96f33efdb58dd3a2897a752e65349
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Diffstat (limited to 'src/vpp-api/vapi/vapi_cpp_gen.py')
-rwxr-xr-x | src/vpp-api/vapi/vapi_cpp_gen.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/vpp-api/vapi/vapi_cpp_gen.py b/src/vpp-api/vapi/vapi_cpp_gen.py index 6e9f5d3f46f..3010f3e1919 100755 --- a/src/vpp-api/vapi/vapi_cpp_gen.py +++ b/src/vpp-api/vapi/vapi_cpp_gen.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 +#!/usr/bin/env python2 import argparse import os @@ -16,30 +16,31 @@ class CppField(CField): field_type, array_len=None, nelem_field=None): - super().__init__(field_name, field_type, array_len, nelem_field) + super(CppField, self).__init__( + field_name, field_type, array_len, nelem_field) class CppStruct(CStruct): def __init__(self, name, fields): - super().__init__(name, fields) + super(CppStruct, self).__init__(name, fields) class CppSimpleType (CSimpleType): - def __init__(self, name): - super().__init__(name) + super(CppSimpleType, self).__init__(name) class CppStructType (CStructType, CppStruct): def __init__(self, definition, typedict, field_class): - super().__init__(definition, typedict, field_class) + super(CppStructType, self).__init__(definition, typedict, field_class) class CppMessage (CMessage): def __init__(self, logger, definition, typedict, struct_type_class, simple_type_class, field_class): - super().__init__(logger, definition, typedict, struct_type_class, - simple_type_class, field_class) + super(CppMessage, self).__init__( + logger, definition, typedict, struct_type_class, + simple_type_class, field_class) def get_swap_to_be_template_instantiation(self): return "\n".join([ |