Skip to content

Commit

Permalink
full compile python 3 port
Browse files Browse the repository at this point in the history
  • Loading branch information
BSVino committed Nov 18, 2021
1 parent 081cff5 commit 5633c05
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ def spew_category(name, commands, current_command, api):
fp.close()

if args.buildmode == 'full':
command_html = command_html.decode('utf8')
command_html = command_html

command_html = command_html.replace("{$pipelinestall}", "")

Expand Down Expand Up @@ -945,7 +945,7 @@ def replace_alias(matchobj):
output = open(output_dir + version_dir + "/" + command, "w")
output_string = output_html
if args.buildmode == 'full':
output_string = htmlmin.minify(output_html, remove_comments=True, reduce_boolean_attributes=True, remove_optional_attribute_quotes=False).encode('ascii', 'xmlcharrefreplace')
output_string = str(htmlmin.minify(output_html, remove_comments=True, reduce_boolean_attributes=True, remove_optional_attribute_quotes=False).encode('ascii', 'xmlcharrefreplace'))
output.write(output_string)
output.close()

Expand Down Expand Up @@ -984,14 +984,14 @@ def replace_alias(matchobj):
fp.close()

if args.buildmode == 'full':
notfound_html = notfound_html.decode('utf8')
notfound_html = notfound_html

output_html = header_for_page + notfound_html + footer_for_page

output = open(output_dir + version + "/404", "w")
output_string = output_html
if args.buildmode == 'full':
output_string = htmlmin.minify(output_html, remove_comments=True, reduce_boolean_attributes=True, remove_optional_attribute_quotes=False).encode('ascii', 'xmlcharrefreplace')
output_string = str(htmlmin.minify(output_html, remove_comments=True, reduce_boolean_attributes=True, remove_optional_attribute_quotes=False).encode('ascii', 'xmlcharrefreplace'))
output.write(output_string)
output.close()

Expand Down

0 comments on commit 5633c05

Please sign in to comment.