aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/views/api
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2018-04-27 09:41:21 +0200
committerGravatar GitHub <[email protected]>2018-04-27 09:41:21 +0200
commit609eb5d952a0d96791e82a32ff26edef492ec8df (patch)
tree700dc16f2d6c57bce97a4c357e146b198dc1ce14 /pysite/views/api
parentMake the nickname policy official (diff)
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. (#56)
Diffstat (limited to 'pysite/views/api')
-rw-r--r--pysite/views/api/__init__.py1
-rw-r--r--pysite/views/api/bot/hiphopify.py1
-rw-r--r--pysite/views/api/bot/tags.py2
-rw-r--r--pysite/views/api/bot/user.py1
-rw-r--r--pysite/views/api/error_view.py1
-rw-r--r--pysite/views/api/healthcheck.py1
-rw-r--r--pysite/views/api/index.py1
7 files changed, 0 insertions, 8 deletions
diff --git a/pysite/views/api/__init__.py b/pysite/views/api/__init__.py
index 9bad5790..e69de29b 100644
--- a/pysite/views/api/__init__.py
+++ b/pysite/views/api/__init__.py
@@ -1 +0,0 @@
-# coding=utf-8
diff --git a/pysite/views/api/bot/hiphopify.py b/pysite/views/api/bot/hiphopify.py
index 7ebf47e1..bb85d5b5 100644
--- a/pysite/views/api/bot/hiphopify.py
+++ b/pysite/views/api/bot/hiphopify.py
@@ -1,4 +1,3 @@
-# coding=utf-8
import datetime
import logging
diff --git a/pysite/views/api/bot/tags.py b/pysite/views/api/bot/tags.py
index ee1a1bee..c901347e 100644
--- a/pysite/views/api/bot/tags.py
+++ b/pysite/views/api/bot/tags.py
@@ -1,5 +1,3 @@
-# coding=utf-8
-
from flask import jsonify
from schema import Optional, Schema
diff --git a/pysite/views/api/bot/user.py b/pysite/views/api/bot/user.py
index 3d8d7271..1394e699 100644
--- a/pysite/views/api/bot/user.py
+++ b/pysite/views/api/bot/user.py
@@ -1,4 +1,3 @@
-# coding=utf-8
import logging
from flask import jsonify, request
diff --git a/pysite/views/api/error_view.py b/pysite/views/api/error_view.py
index 30e133f9..89b4d6ad 100644
--- a/pysite/views/api/error_view.py
+++ b/pysite/views/api/error_view.py
@@ -1,4 +1,3 @@
-# coding=utf-8
from flask import jsonify
from werkzeug.exceptions import HTTPException
diff --git a/pysite/views/api/healthcheck.py b/pysite/views/api/healthcheck.py
index d57f61fa..c873d674 100644
--- a/pysite/views/api/healthcheck.py
+++ b/pysite/views/api/healthcheck.py
@@ -1,4 +1,3 @@
-# coding=utf-8
from flask import jsonify
from pysite.base_route import APIView
diff --git a/pysite/views/api/index.py b/pysite/views/api/index.py
index e2bd8fe0..5111162c 100644
--- a/pysite/views/api/index.py
+++ b/pysite/views/api/index.py
@@ -1,4 +1,3 @@
-# coding=utf-8
from pysite.base_route import APIView
from pysite.constants import ErrorCodes