Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def parse_string(cstr):
"""
wrapper for _parse_string with
parametrized exception handling
"""
ret = ''
if _RUNNING_PYTHON3 and ULog._disable_str_exceptions:
ret = _parse_string(cstr, 'ignore')
else:
ret = _parse_string(cstr)
return ret
self._logged_messages = []
self._logged_messages_tagged = {}
self._dropouts = []
self._data_list = []
self._subscriptions = {} # dict of key=msg_id, value=_MessageAddLogged
self._filtered_message_ids = set() # _MessageAddLogged id's that are filtered
self._missing_message_ids = set() # _MessageAddLogged id's that could not be found
self._file_version = 0
self._compat_flags = [0] * 8
self._incompat_flags = [0] * 8
self._appended_offsets = [] # file offsets for appended data
self._has_sync = True # set to false when first file search for sync fails
self._sync_seq_cnt = 0 # number of sync packets found in file
ULog._disable_str_exceptions = disable_str_exceptions
self._load_file(log_file, message_name_filter_list)