Skip to content

Need avoiding relying on sys.stdout #600

@hl037

Description

@hl037

Hi,
Here : https://github.com/tmux-python/libtmux/blob/master/src/libtmux/_compat.py#L7C1-L7C17
the console_encoding variable seems to be unused (no occurence in any import of _compat.py). Yet, the read op on sys.stdout.encoding is throwing an error in nvim, since stdout is overriden internally, and is not providing an encoding.

thus, I am wondering why this line even exists ? libtmux should not even rely on sys.stdout, since it's only a client/server, not a CLI app... (I actually have seen no other reference to sys.stdout neither.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions