diff --git a/modules/openstack_project/files/logs/htmlify-screen-log.py b/modules/openstack_project/files/logs/htmlify-screen-log.py index e27e319c6f..8625f859f4 100755 --- a/modules/openstack_project/files/logs/htmlify-screen-log.py +++ b/modules/openstack_project/files/logs/htmlify-screen-log.py @@ -81,7 +81,7 @@ def link_timestamp(line): def passthrough_filter(fname): - for line in fileinput.input(fname, openhook=fileinput.hook_compressed): + for line in fileinput.FileInput(fname, openhook=fileinput.hook_compressed): yield line @@ -111,7 +111,7 @@ def html_filter(fname): """ yield _css_preamble() - for line in fileinput.input(fname, openhook=fileinput.hook_compressed): + for line in fileinput.FileInput(fname, openhook=fileinput.hook_compressed): newline = escape_html(line) newline = color_by_sev(newline) newline = link_timestamp(newline) @@ -122,7 +122,7 @@ def html_filter(fname): def htmlify_stdin(): out = sys.stdout out.write(_css_preamble()) - for line in fileinput.input(): + for line in fileinput.FileInput(): newline = escape_html(line) newline = color_by_sev(newline) newline = link_timestamp(newline)