def connected_to_terminal(stream=None):
    stream = sys.stdout if stream is None else stream
    try:
        return stream.isatty()
    except Exception:
        return False
Delete an issue from one of your repositories.
dataset/ETHPy150Open xolox/python-humanfriendly/humanfriendly/terminal.py/connected_to_terminal--crossover with--dataset/ETHPy150Open Sheeprider/BitBucket-api/bitbucket/issue_comment.py/IssueComment.delete