# HG changeset patch # User Matt Harbison # Date 2018-12-22 05:05:39 # Node ID 2eeef8e577acf695c7e741f2981fcedd6e7fe138 # Parent 73da729ccfefde424a858bde11d5f6fff380bf69 py3: byteify one more sys.argv in gendoc.py diff --git a/doc/gendoc.py b/doc/gendoc.py --- a/doc/gendoc.py +++ b/doc/gendoc.py @@ -237,4 +237,4 @@ if __name__ == "__main__": if doc == b'hg.1.gendoc': showdoc(ui) else: - showtopic(ui, sys.argv[1]) + showtopic(ui, encoding.strtolocal(sys.argv[1]))