aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRapptz <[email protected]>2019-04-16 17:35:04 -0400
committerRapptz <[email protected]>2019-04-16 17:35:04 -0400
commit2fe42d5e81cd28643df07f8c21207dc6d83765c1 (patch)
treede3ef97189e3f8e3fbc139641d9d55b71c11795b
parentImprove performance of value -> enum by about 5x. (diff)
downloaddiscord.py-2fe42d5e81cd28643df07f8c21207dc6d83765c1.tar.xz
discord.py-2fe42d5e81cd28643df07f8c21207dc6d83765c1.zip
Remove Python 3.5 check in __main__.py
-rw-r--r--discord/__main__.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/discord/__main__.py b/discord/__main__.py
index 495f8b61..e664702d 100644
--- a/discord/__main__.py
+++ b/discord/__main__.py
@@ -152,7 +152,7 @@ _base_table = {
'*': '-',
}
-#
+# NUL (0) and 1-31 are disallowed
_base_table.update((chr(i), None) for i in range(32))
translation_table = str.maketrans(_base_table)
@@ -173,9 +173,6 @@ def to_path(parser, name, *, replace_spaces=False):
return Path(name)
def newbot(parser, args):
- if sys.version_info < (3, 5):
- parser.error('python version is older than 3.5, consider upgrading.')
-
new_directory = to_path(parser, args.directory) / to_path(parser, args.name)
# as a note exist_ok for Path is a 3.5+ only feature
@@ -217,9 +214,6 @@ def newbot(parser, args):
print('successfully made bot at', new_directory)
def newcog(parser, args):
- if sys.version_info < (3, 5):
- parser.error('python version is older than 3.5, consider upgrading.')
-
cog_dir = to_path(parser, args.directory)
try:
cog_dir.mkdir(exist_ok=True)