Merge pull request #305 from cjmayo/python3_48

{python3_48} Python3: fix displaying help
This commit is contained in:
anarcat 2019-09-16 10:10:36 -04:00 committed by GitHub
commit 4ccf0fb2d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,7 +29,7 @@ class LCArgumentParser(argparse.ArgumentParser):
def print_help(self, file=sys.stdout):
"""Print a help message to stdout."""
msg = console.encode(self.format_help())
msg = self.format_help()
if fileutil.is_tty(file):
strformat.paginate(msg)
else: