Skip to content

Commit dbbe27f

Browse files
committed
change elif condition
change elif condition
1 parent 3e1e6de commit dbbe27f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/canmatrix/formats/dbc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ def add_frame_by_id(new_frame): # type: (canmatrix.Frame) -> None
860860
temp.group(2)).add_attribute(
861861
temp.group(1),
862862
temp.group(3))
863-
elif decoded.find('"BusType"') != -1:
863+
elif '"BusType"' in decoded:
864864
regexp = re.compile(r"^BA_ +\"BusType\" +\"(.+?)\" *; *")
865865
temp = regexp.match(decoded)
866866
if temp:

0 commit comments

Comments
 (0)