aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2018-04-27 15:41:38 +0200
committerGravatar Gareth Coles <[email protected]>2018-04-27 14:41:38 +0100
commit34d3232e38e8b93ee5ab2b61b2d98398e2d20273 (patch)
treef68551f3ad3949fa99d05a916315ce28832473fe
parentUse converters for tag command argument validation. (#56) (diff)
Declaring the encoding to be utf-8 is not necessary in Python3. (#58)
* Declaring the encoding to be utf-8 is not necessary in Python3 projects, as this is the default encoding. Encoding declarations are only useful in py3 if you want to declare it to be something _other_ than utf-8. This was, however, a very useful convention in py2. * No blank lines at the top of file. Also snuck in a single letter typo correction in hiphopify because I'm a terrible person. inb4 THIS IS NOT IN SCOPE FOR THIS PR
-rw-r--r--bot/__init__.py1
-rw-r--r--bot/__main__.py1
-rw-r--r--bot/cogs/__init__.py1
-rw-r--r--bot/cogs/bot.py1
-rw-r--r--bot/cogs/clickup.py1
-rw-r--r--bot/cogs/cogs.py1
-rw-r--r--bot/cogs/deployment.py1
-rw-r--r--bot/cogs/eval.py2
-rw-r--r--bot/cogs/events.py1
-rw-r--r--bot/cogs/fun.py1
-rw-r--r--bot/cogs/hiphopify.py2
-rw-r--r--bot/cogs/logging.py1
-rw-r--r--bot/cogs/security.py1
-rw-r--r--bot/cogs/verification.py1
-rw-r--r--bot/constants.py1
-rw-r--r--bot/decorators.py1
-rw-r--r--bot/formatter.py2
-rw-r--r--bot/interpreter.py1
-rw-r--r--bot/pagination.py1
-rw-r--r--bot/utils.py3
20 files changed, 1 insertions, 24 deletions
diff --git a/bot/__init__.py b/bot/__init__.py
index 070bff585..84588d5bb 100644
--- a/bot/__init__.py
+++ b/bot/__init__.py
@@ -1,4 +1,3 @@
-# coding=utf-8
import ast
import logging
import re
diff --git a/bot/__main__.py b/bot/__main__.py
index 100350d48..085766c14 100644
--- a/bot/__main__.py
+++ b/bot/__main__.py
@@ -1,4 +1,3 @@
-# coding=utf-8
import os
from aiohttp import AsyncResolver, ClientSession, TCPConnector
diff --git a/bot/cogs/__init__.py b/bot/cogs/__init__.py
index 9bad5790a..e69de29bb 100644
--- a/bot/cogs/__init__.py
+++ b/bot/cogs/__init__.py
@@ -1 +0,0 @@
-# coding=utf-8
diff --git a/bot/cogs/bot.py b/bot/cogs/bot.py
index ca92f2741..0990e99c7 100644
--- a/bot/cogs/bot.py
+++ b/bot/cogs/bot.py
@@ -1,4 +1,3 @@
-# coding=utf-8
import ast
import logging
import re
diff --git a/bot/cogs/clickup.py b/bot/cogs/clickup.py
index 0515adbab..19cae596f 100644
--- a/bot/cogs/clickup.py
+++ b/bot/cogs/clickup.py
@@ -1,4 +1,3 @@
-# coding=utf-8
import logging
from discord import Colour, Embed
diff --git a/bot/cogs/cogs.py b/bot/cogs/cogs.py
index fb65b6009..92887d0b3 100644
--- a/bot/cogs/cogs.py
+++ b/bot/cogs/cogs.py
@@ -1,4 +1,3 @@
-# coding=utf-8
import logging
import os
diff --git a/bot/cogs/deployment.py b/bot/cogs/deployment.py
index b85d01ad2..b16b6e63d 100644
--- a/bot/cogs/deployment.py
+++ b/bot/cogs/deployment.py
@@ -1,4 +1,3 @@
-# coding=utf-8
import logging
from discord import Colour, Embed
diff --git a/bot/cogs/eval.py b/bot/cogs/eval.py
index 8d969e750..55c67bcfa 100644
--- a/bot/cogs/eval.py
+++ b/bot/cogs/eval.py
@@ -1,5 +1,3 @@
-# coding=utf-8
-
import contextlib
import inspect
import logging
diff --git a/bot/cogs/events.py b/bot/cogs/events.py
index 975b39ed9..34ceeb399 100644
--- a/bot/cogs/events.py
+++ b/bot/cogs/events.py
@@ -1,4 +1,3 @@
-# coding=utf-8
import logging
from discord import Embed, Member
diff --git a/bot/cogs/fun.py b/bot/cogs/fun.py
index 812434b12..0689d82dc 100644
--- a/bot/cogs/fun.py
+++ b/bot/cogs/fun.py
@@ -1,4 +1,3 @@
-# coding=utf-8
import logging
from discord import Message
diff --git a/bot/cogs/hiphopify.py b/bot/cogs/hiphopify.py
index 9c494651c..54f217ca5 100644
--- a/bot/cogs/hiphopify.py
+++ b/bot/cogs/hiphopify.py
@@ -28,7 +28,7 @@ class Hiphopify:
"""
This event will trigger when someone changes their name.
At this point we will look up the user in our database and check
- whether they are allowed o change their names, or if they are in
+ whether they are allowed to change their names, or if they are in
hiphop-prison. If they are not allowed, we will change it back.
:return:
"""
diff --git a/bot/cogs/logging.py b/bot/cogs/logging.py
index 8399e35ca..6d46a3fb4 100644
--- a/bot/cogs/logging.py
+++ b/bot/cogs/logging.py
@@ -1,4 +1,3 @@
-# coding=utf-8
import logging
from discord import Embed
diff --git a/bot/cogs/security.py b/bot/cogs/security.py
index 7b4cf3194..79f7cb07d 100644
--- a/bot/cogs/security.py
+++ b/bot/cogs/security.py
@@ -1,4 +1,3 @@
-# coding=utf-8
import logging
from discord.ext.commands import AutoShardedBot, Context
diff --git a/bot/cogs/verification.py b/bot/cogs/verification.py
index 0c3fae3ed..1c5b37894 100644
--- a/bot/cogs/verification.py
+++ b/bot/cogs/verification.py
@@ -1,4 +1,3 @@
-# coding=utf-8
import logging
from discord import Message, Object
diff --git a/bot/constants.py b/bot/constants.py
index 6641a89bb..61db90882 100644
--- a/bot/constants.py
+++ b/bot/constants.py
@@ -1,4 +1,3 @@
-# coding=utf-8
import os
# Server
diff --git a/bot/decorators.py b/bot/decorators.py
index 7009e259c..b84b2c360 100644
--- a/bot/decorators.py
+++ b/bot/decorators.py
@@ -1,4 +1,3 @@
-# coding=utf-8
import logging
from discord.ext import commands
diff --git a/bot/formatter.py b/bot/formatter.py
index 420aa66c2..f46aaa685 100644
--- a/bot/formatter.py
+++ b/bot/formatter.py
@@ -1,5 +1,3 @@
-# coding=utf-8
-
"""
Credit to Rapptz's script used as an example:
https://github.com/Rapptz/discord.py/blob/rewrite/discord/ext/commands/formatter.py
diff --git a/bot/interpreter.py b/bot/interpreter.py
index cddc6c5a1..06343db39 100644
--- a/bot/interpreter.py
+++ b/bot/interpreter.py
@@ -1,4 +1,3 @@
-# coding=utf-8
from code import InteractiveInterpreter
from io import StringIO
diff --git a/bot/pagination.py b/bot/pagination.py
index 268f34748..49fae1e2e 100644
--- a/bot/pagination.py
+++ b/bot/pagination.py
@@ -1,4 +1,3 @@
-# coding=utf-8
import asyncio
import logging
from typing import Iterable, Optional
diff --git a/bot/utils.py b/bot/utils.py
index ec5406c17..aaea1feeb 100644
--- a/bot/utils.py
+++ b/bot/utils.py
@@ -1,6 +1,3 @@
-# coding=utf-8
-
-
class CaseInsensitiveDict(dict):
"""
We found this class on StackOverflow. Thanks to m000 for writing it!