X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=make-man-index.py;h=8789d995eca021fbe1e427f4e20bcef27a729e02;hp=1e67287c08482b5f01899ae9bccf6fc3fba5331b;hb=96342de68d0d6de71a062d984dafd2a0905ed9fe;hpb=7653b3c29adbad9d299fe9ff09ed30fbcc606acc diff --git a/make-man-index.py b/make-man-index.py index 1e67287c0..8789d995e 100755 --- a/make-man-index.py +++ b/make-man-index.py @@ -72,5 +72,7 @@ hr = SubElement(body, 'hr') p = SubElement(body, 'p') p.text = "This index contains %s entries, referring to %i individual manual pages." % (len(index), len(argv)-1) +if hasattr(stdout, "buffer"): + stdout = stdout.buffer prettify(html) stdout.write(tostring(html))