Skip to content

Commit

Permalink
Add deprecation warning for python 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
tekulvw committed May 21, 2018
1 parent 23706a1 commit bb0a8c9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion redbot/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import sys
import typing
import discord

# Let's do all the dumb version checking in one place.
Expand All @@ -11,3 +10,12 @@
" >= 1.0.0."
)
sys.exit(1)

if sys.version_info < (3, 6, 0):
print(
"[DEPRECATION WARNING]\nYou 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.",
file=sys.stderr,
)

0 comments on commit bb0a8c9

Please sign in to comment.