mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[V3] Add deprecation warning for Python 3.5 (#1684)
* Add deprecation warning for python 3.5 * Use colorama * Modify background color * Just print to stdout
This commit is contained in:
parent
23706a1ba9
commit
ecb64cc2ec
@ -1,7 +1,8 @@
|
||||
import sys
|
||||
import typing
|
||||
import discord
|
||||
from colorama import init, Back
|
||||
|
||||
init()
|
||||
# Let's do all the dumb version checking in one place.
|
||||
|
||||
if discord.version_info.major < 1:
|
||||
@ -11,3 +12,12 @@ if discord.version_info.major < 1:
|
||||
" >= 1.0.0."
|
||||
)
|
||||
sys.exit(1)
|
||||
|
||||
if sys.version_info < (3, 6, 0):
|
||||
print(Back.RED + "[DEPRECATION WARNING]")
|
||||
print(
|
||||
Back.RED + "You are currently running Python 3.5."
|
||||
" Support for Python 3.5 will end with the release of beta 16."
|
||||
" Please update your environment to Python 3.6 as soon as possible to avoid"
|
||||
" any interruptions after the beta 16 release."
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user