def _import_yaml(config_file_path):
try:<EOL><INDENT>logger.info('<STR_LIT>', config_file_path)<EOL>with open(config_file_path) as config_file:<EOL><INDENT>return yaml.safe_load(config_file.read())<EOL><DEDENT><DEDENT>except IOError as ex:<EOL><INDENT>raise RepexError('<STR_LIT>'.format(<EOL>ERRORS['<STR_LIT>'], config_file_path, ex))<EOL><DEDENT>except (yaml.parser.ParserError, yaml.scanner.ScannerError) as ex:<EOL><INDENT>raise RepexError('<STR_LIT>'.format(ERRORS['<STR_LIT>'], ex))<EOL><DEDENT>
Return a configuration object