Skip to content

Commit 4a36757

Browse files
committed
Remove code duplication
Signed-off-by: Sebastian Ramacher <sebastian+dev@ramacher.at>
1 parent cb6eb39 commit 4a36757

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

bpython/curtsiesfrontend/interpreter.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ def __init__(self, locals=None, encoding=None):
7373
We include an argument for the outfile to pass to the formatter for it
7474
to write to.
7575
"""
76-
if encoding is None:
77-
encoding = getpreferredencoding()
7876
ReplInterpreter.__init__(self, locals, encoding)
7977

8078
self.compile = CommandCompiler()

0 commit comments

Comments
 (0)