Skip to content

Commit 21b9a54

Browse files
committed
Use bpython.config's getpreferredencoding
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent 5cdfa51 commit 21b9a54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
import time
3838
import traceback
3939
from itertools import takewhile
40-
from locale import getpreferredencoding
4140
from six import itervalues
4241

4342
from pygments.token import Token
@@ -46,6 +45,7 @@
4645
from bpython import inspection
4746
from bpython._py3compat import PythonLexer, py3, prepare_for_exec
4847
from bpython.clipboard import get_clipboard, CopyFailed
48+
from bpython.config import getpreferredencoding
4949
from bpython.formatter import Parenthesis
5050
from bpython.history import History
5151
from bpython.paste import PasteHelper, PastePinnwand, PasteFailed

0 commit comments

Comments
 (0)