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

Remove ImportError catching from from contextlib import redirect_stdout #71

Open
KevinHock opened this issue Jan 29, 2021 · 1 comment

Comments

@KevinHock
Copy link
Collaborator

Now that we're python 3+, we can remove the following:

except ImportError: # pragma: no cover
import sys
from contextlib import contextmanager
@contextmanager
def redirect_stdout(target):
original = sys.stdout
sys.stdout = target
yield
sys.stdout = original

(Still reusing some code from this project :D)

@P0intMaN
Copy link

Hello Developer,

I am new to open source contribution. I would like this to be my first contribution towards this repository.
I hope this issue is still open and do I have to take permission from moderators before contributing?

Thanks!

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

No branches or pull requests

2 participants