aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/views/error_handlers
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/error_handlers
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/error_handlers')
-rw-r--r--pysite/views/error_handlers/http_4xx.py1
-rw-r--r--pysite/views/error_handlers/http_5xx.py1
2 files changed, 0 insertions, 2 deletions
diff --git a/pysite/views/error_handlers/http_4xx.py b/pysite/views/error_handlers/http_4xx.py
index 2d6c54c6..69c0bdda 100644
--- a/pysite/views/error_handlers/http_4xx.py
+++ b/pysite/views/error_handlers/http_4xx.py
@@ -1,4 +1,3 @@
-# coding=utf-8
from flask import request
from werkzeug.exceptions import HTTPException
diff --git a/pysite/views/error_handlers/http_5xx.py b/pysite/views/error_handlers/http_5xx.py
index 46c65e38..5a4fbdc2 100644
--- a/pysite/views/error_handlers/http_5xx.py
+++ b/pysite/views/error_handlers/http_5xx.py
@@ -1,4 +1,3 @@
-# coding=utf-8
from flask import request
from werkzeug.exceptions import HTTPException, InternalServerError