Skip to content

Commit

Permalink
fix pylint warning W1514: Using open without explicitly specifying an…
Browse files Browse the repository at this point in the history
… encoding
  • Loading branch information
nodiscc committed Dec 20, 2023
1 parent 9b59196 commit 1beb816
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hecat/exporters/markdown_singlepage.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,9 +308,9 @@ def render_markdown_singlepage(step):
markdown_header = ''
markdown_footer = ''
if 'markdown_header' in step['module_options']:
markdown_header = open(step['module_options']['source_directory'] + '/' + step['module_options']['markdown_header'], 'r').read()
markdown_header = open(step['module_options']['source_directory'] + '/' + step['module_options']['markdown_header'], 'r', encoding="utf-8").read()
if 'markdown_footer' in step['module_options']:
markdown_footer = open(step['module_options']['source_directory'] + '/' + step['module_options']['markdown_footer'], 'r').read()
markdown_footer = open(step['module_options']['source_directory'] + '/' + step['module_options']['markdown_footer'], 'r', encoding="utf-8").read()
markdown_software_list = '## Software\n\n'
if ('exclude_licenses' in step['module_options']) and ('include_licenses' in step['module_options']):
logging.error('module options exclude_licenses and include_licenses cannot be used together.')
Expand Down

0 comments on commit 1beb816

Please sign in to comment.