Skip to content
This repository was archived by the owner on Oct 10, 2020. It is now read-only.

Commit f8cca67

Browse files
TomasTomecekrh-atomic-bot
authored andcommitted
help: fix pager on python 3
fixes: ``` Traceback (most recent call last): File "/home/tt/g/atomic/atomic", line 185, in <module> sys.exit(_func()) File "/home/tt/g/atomic/Atomic/help.py", line 57, in help_tty pager(result) File "/usr/lib64/python3.6/pydoc.py", line 1421, in pager pager(text) File "/usr/lib64/python3.6/pydoc.py", line 1438, in <lambda> return lambda text: pipepager(text, use_pager) File "/usr/lib64/python3.6/pydoc.py", line 1468, in pipepager pipe.write(text) TypeError: write() argument must be str, not bytes ``` Signed-off-by: Tomas Tomecek <ttomecek@redhat.com> Closes: #1128 Approved by: giuseppe
1 parent 0c69a6a commit f8cca67

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Atomic/help.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def help_tty(self):
5353
else:
5454
# Call the pager
5555
os.environ['PAGER'] = '/usr/bin/less -R'
56-
pager(result)
56+
pager(result.decode(self.enc))
5757

5858
def help(self):
5959
"""

0 commit comments

Comments
 (0)