1
0
forked from VimPlug/jedi

Fix troublesome import of colorama on Windows

This commit is contained in:
blink1073
2014-01-12 07:50:46 -06:00
parent f3768f818b
commit 4045e6f239

View File

@@ -1,11 +1,14 @@
from jedi._compatibility import u, encoding, is_py3k
import inspect
import os
import time
try:
if not os.name == 'nt':
# Use colorama for nicer console output.
from colorama import Fore, init
init()
# does not work on Windows, as pyreadline and colorama interfere
except ImportError:
class Fore(object):
RED = ''