diff --git a/compile.py b/compile.py index f3da1f7e..1d439559 100644 --- a/compile.py +++ b/compile.py @@ -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}", "") @@ -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() @@ -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()