Ensure nothing initializes colorama when it isn't needed (#5063)

This commit is contained in:
jack1142
2021-05-20 10:31:27 +02:00
committed by GitHub
parent a6c438e486
commit b89c43eb0f
3 changed files with 29 additions and 2 deletions

View File

@@ -22,9 +22,9 @@ import discord
# Set the event loop policies here so any subsequent `new_event_loop()`
# calls, in particular those as a result of the following imports,
# return the correct loop object.
from redbot import _update_event_loop_policy, __version__
from redbot import _early_init, __version__
_update_event_loop_policy()
_early_init()
import redbot.logging
from redbot.core.bot import Red, ExitCodes