Skip to content

Get stdin function directly #2

Open
@sigmavirus24

Description

In GitLab by @xZise on Jul 26, 2016, 04:35

I'm wondering if this package could provide the stdin function directly. So instead of needing to patch some module so it looks like this:

from flake8_polyfill import stdin
stdin.patch_stdin('pep8')
from pep8 import stdin_get_value

It could look like this:

from flake8_polyfill.stdin import stdin_get_value

And basically this is just moving the if block in patch_stdin outside the function. If you want I can provide a merge request for it.

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