Skip to content

AttributeError: 'FakeOutput' object has no attribute 'encoding' #622

Closed
@goetzc

Description

@goetzc

sys.stdout.encoding gives this error.
Also sys.stdin.encoding gives 'UTF8', while python gives 'UTF-8' for both cases.

This commit makes bpython work (naturally stdin is still different than in standard python):

bpython version 0.15 on top of Python 3.5.2 /usr/bin/python
>>> import sys
>>> sys.stdin.encoding
'UTF8'
>>> sys.stdout.encoding
'UTF-8'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions