Only import colorama on windows systems.

This commit is contained in:
Bastian Kleineidam 2012-10-01 18:01:56 +02:00
parent a53e1f63bc
commit c1dc5892c8

View file

@ -16,7 +16,8 @@ from math import log, floor
from .output import out from .output import out
from .configuration import UserAgent, AppName, App, SupportUrl from .configuration import UserAgent, AppName, App, SupportUrl
from .fileutil import has_module, is_tty from .fileutil import has_module, is_tty
from . import colorama if os.name == 'nt':
from . import colorama
has_curses = has_module("curses") has_curses = has_module("curses")