diff --git a/AUTHORS b/AUTHORS index 5d258aa..8896c96 100644 --- a/AUTHORS +++ b/AUTHORS @@ -16,4 +16,5 @@ Patches and Suggestions - Will Thames - Greg Haskins - Miguel Araujo -- takluyver \ No newline at end of file +- takluyver +- kracekumar diff --git a/HACKING b/HACKING index 018f9b7..46b9651 100644 --- a/HACKING +++ b/HACKING @@ -11,4 +11,4 @@ All functionality should be available in pure Python. Optional C (via Cython) implementations may be written for performance reasons, but should never replace the Python implementation. -Lastly, don't take yourself too seriously :) \ No newline at end of file +Lastly, don't take yourself too seriously :) diff --git a/clint/textui/colored.py b/clint/textui/colored.py index 63d7593..f93f50f 100644 --- a/clint/textui/colored.py +++ b/clint/textui/colored.py @@ -25,7 +25,16 @@ __all__ = ( ) COLORS = __all__[:-2] -DISABLE_COLOR = False + +if 'get_ipython' in dir(): +""" + when ipython is fired lot of variables like _oh, etc are used. + There are so many ways to find current python interpreter is ipython. + get_ipython is easiest is most appealing for readers to understand. +""" + DISABLE_COLOR = True +else: + DISABLE_COLOR = False if not sys.stdout.isatty(): DISABLE_COLOR = True