forked from VimPlug/jedi
Colorama 0.3.6 is buggy, so just don't import it if it's not there.
This commit is contained in:
@@ -14,7 +14,12 @@ try:
|
|||||||
# pytest resets the stream at the end - causes troubles. Since after
|
# pytest resets the stream at the end - causes troubles. Since after
|
||||||
# every output the stream is reset automatically we don't need this.
|
# every output the stream is reset automatically we don't need this.
|
||||||
initialise.atexit_done = True
|
initialise.atexit_done = True
|
||||||
init()
|
try:
|
||||||
|
init()
|
||||||
|
except Exception:
|
||||||
|
# Colorama fails with initializing under vim and is buggy in
|
||||||
|
# version 0.3.6.
|
||||||
|
pass
|
||||||
except ImportError:
|
except ImportError:
|
||||||
class Fore(object):
|
class Fore(object):
|
||||||
RED = ''
|
RED = ''
|
||||||
|
|||||||
Reference in New Issue
Block a user