mirror of
https://github.com/davidhalter/jedi.git
synced 2026-10-13 04:40:14 +08:00
Allow creation of the Fore class on Windows
This commit is contained in:
1 parent
4045e6f239
commit
f47d529f76
1 file changed
+3
-1
+3
-1
@@ -8,7 +8,9 @@ try:
|
|||||||
# Use colorama for nicer console output.
|
# Use colorama for nicer console output.
|
||||||
from colorama import Fore, init
|
from colorama import Fore, init
|
||||||
init()
|
init()
|
||||||
# does not work on Windows, as pyreadline and colorama interfere
|
# does not work on Windows, as pyreadline and colorama interfere
|
||||||
|
else:
|
||||||
|
raise ImportError
|
||||||
except ImportError:
|
except ImportError:
|
||||||
class Fore(object):
|
class Fore(object):
|
||||||
RED = ''
|
RED = ''
|
||||||
|
|||||||
Reference in new issue
Block a user