We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad0bc41 commit 5800e38Copy full SHA for 5800e38
bpython/curtsiesfrontend/_internal.py
@@ -23,6 +23,8 @@
23
import pydoc
24
25
import bpython._internal
26
+from bpython._py3compat import py3
27
+from bpython.repl import getpreferredencoding
28
29
30
class NopPydocPager(object):
@@ -46,6 +48,8 @@ def __init__(self, repl=None):
46
48
super(_Helper, self).__init__()
47
49
50
def pager(self, output):
51
+ if not py3 and isinstance(output, str):
52
+ output = output.decode(getpreferredencoding())
53
self._repl.pager(output)
54
55
def __call__(self, *args, **kwargs):
0 commit comments