From a59f03c179587573924edc03bacfc5aa3f77d83d Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Sun, 2 Aug 2020 13:02:07 -0700 Subject: [PATCH] cleanup parser_pyx --- can/parser_pyx.pyx | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/can/parser_pyx.pyx b/can/parser_pyx.pyx index f12b2e6..bd5adf6 100644 --- a/can/parser_pyx.pyx +++ b/can/parser_pyx.pyx @@ -3,20 +3,17 @@ from libcpp.string cimport string from libcpp.vector cimport vector -from libcpp cimport bool from libcpp.unordered_set cimport unordered_set from libc.stdint cimport uint32_t, uint64_t, uint16_t from libcpp.map cimport map - -from collections import defaultdict +from libcpp cimport bool from common cimport CANParser as cpp_CANParser from common cimport SignalParseOptions, MessageParseOptions, dbc_lookup, SignalValue, DBC - -from libcpp cimport bool import os import numbers +from collections import defaultdict cdef int CAN_INVALID_CNT = 5 @@ -30,7 +27,7 @@ cdef class CANParser: vector[SignalValue] can_values bool test_mode_enabled - cdef public: + cdef readonly: string dbc_name dict vl dict ts