Skip to content

Commit 5800e38

Browse files
require unicode for pager
1 parent ad0bc41 commit 5800e38

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bpython/curtsiesfrontend/_internal.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
import pydoc
2424

2525
import bpython._internal
26+
from bpython._py3compat import py3
27+
from bpython.repl import getpreferredencoding
2628

2729

2830
class NopPydocPager(object):
@@ -46,6 +48,8 @@ def __init__(self, repl=None):
4648
super(_Helper, self).__init__()
4749

4850
def pager(self, output):
51+
if not py3 and isinstance(output, str):
52+
output = output.decode(getpreferredencoding())
4953
self._repl.pager(output)
5054

5155
def __call__(self, *args, **kwargs):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy