move parse_yaml_msg_id_file() to uorb_rtps_classifier.py

This commit is contained in:
TSC21
2018-10-08 10:58:45 +02:00
committed by Beat Küng
parent a8b0663cfe
commit d17d5d52bf
3 changed files with 23 additions and 25 deletions
@@ -41,7 +41,6 @@ precompiled and thus message generation will be much faster
import os
import errno
import yaml
import genmsg.msgs
import gencpp
@@ -365,20 +364,6 @@ def get_absolute_path(arg_parse_dir):
return dir
def parse_yaml_msg_id_file(yaml_file):
"""
Parses a yaml file into a dict
"""
try:
with open(yaml_file, 'r') as f:
return yaml.load(f)
except OSError as e:
if e.errno == errno.ENOENT:
raise IOError(errno.ENOENT, os.strerror(errno.ENOENT), yaml_file)
else:
raise
def check_available_ids(used_msg_ids_list):
"""
Checks the available RTPS ID's