Skip to content

Commit

Permalink
Merge pull request #163 from veleek/pycharm
Browse files Browse the repository at this point in the history
Add support for PyCharm
  • Loading branch information
wiggin15 committed May 3, 2018
2 parents 8fc6600 + 8657a76 commit e19cbb7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion colorama/ansitowin32.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ def is_stream_closed(stream):


def is_a_tty(stream):
return hasattr(stream, 'isatty') and stream.isatty()
if 'PYCHARM_HOSTED' in os.environ:
return True
return (hasattr(stream, 'isatty') and stream.isatty())


class StreamWrapper(object):
Expand Down

0 comments on commit e19cbb7

Please sign in to comment.