Updated Python code with Python 3.6+ features:
- utf-8 encoding is now the default (PEP 3120)
- Replace list comprehensions by Generator Expressions (PEP 289)
- Replace yield loop by yield from (PEP 380)
- Remove the (object) subclass when defining a class
- Replace the IOError alias by OSError (PEP 3151)
- Define sets with curly braces {} instead of set()
- Remove "r" parameter from open function, which is default
Co-Authored-By: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-Authored-By: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>
Co-authored-by: Adeeb Shihadeh <8762862+adeebshihadeh@users.noreply.github.com>
Co-authored-by: GregorKikelj <96022003+GregorKikelj@users.noreply.github.com>
HYBRID_CAR=set([CAR.IONIQ_PHEV,CAR.ELANTRA_HEV_2021,CAR.KIA_NIRO_HEV,CAR.KIA_NIRO_HEV_2021,CAR.SONATA_HYBRID,CAR.KONA_HEV,CAR.IONIQ,CAR.IONIQ_HEV_2022,CAR.SANTA_FE_HEV_2022])# these cars use a different gas signal
HYBRID_CAR={CAR.IONIQ_PHEV,CAR.ELANTRA_HEV_2021,CAR.KIA_NIRO_HEV,CAR.KIA_NIRO_HEV_2021,CAR.SONATA_HYBRID,CAR.KONA_HEV,CAR.IONIQ,CAR.IONIQ_HEV_2022,CAR.SANTA_FE_HEV_2022}# these cars use a different gas signal