Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get stdin function directly #2

Open
sigmavirus24 opened this issue Oct 13, 2021 · 1 comment
Open

Get stdin function directly #2

sigmavirus24 opened this issue Oct 13, 2021 · 1 comment

Comments

@sigmavirus24
Copy link
Member

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.

@sigmavirus24
Copy link
Member Author

In GitLab by @habnabit on Dec 5, 2016, 23:56

I was going to open this exact issue. The polyfill as-is makes no sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant