Skip to content

esaas mc converter#86

Open
mint87 wants to merge 1 commit intomasterfrom
esaas_mc_converter
Open

esaas mc converter#86
mint87 wants to merge 1 commit intomasterfrom
esaas_mc_converter

Conversation

@mint87
Copy link
Contributor

@mint87 mint87 commented Aug 4, 2021

base_content = section.get('content-file', '')
write_file(content_file, f'{base_content}\n')
section['content-file'] = str(str(relative_path).replace("\\", "/"))
return section
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try not to return it

flags=re.MULTILINE)
if match_settings_item:
settings[match_settings_item.group('key')] = match_settings_item.group('value')

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

large nesting, try to simplify

match_tag = re.search(r"topic:(?P<tag_value>.*?)'$", tag)
if match_tag:
tag = match_tag.group('tag_value')
tags.append({'name': 'topic', 'value': tag})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

large nesting, try to simplify

guidance.append(match_guidance.group('explanation'))

if option_type == 'group':
continue
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

might try match-case or dictionary

relative_path = content_file.relative_to(output_dir)
base_content = section.get('content-file', '')
write_file(content_file, f'{base_content}\n')
section['content-file'] = str(str(relative_path).replace("\\", "/"))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did not understand why srt (str

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants