Skip to content

Remove ImportError catching from from contextlib import redirect_stdout #71

@KevinHock

Description

@KevinHock

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions