From 609eb5d952a0d96791e82a32ff26edef492ec8df Mon Sep 17 00:00:00 2001 From: Leon Sandøy Date: Fri, 27 Apr 2018 09:41:21 +0200 Subject: 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) --- pysite/views/wiki/history/show.py | 1 - 1 file changed, 1 deletion(-) (limited to 'pysite/views/wiki/history/show.py') diff --git a/pysite/views/wiki/history/show.py b/pysite/views/wiki/history/show.py index e18b017e..50fc5d73 100644 --- a/pysite/views/wiki/history/show.py +++ b/pysite/views/wiki/history/show.py @@ -1,4 +1,3 @@ -# coding=utf-8 import datetime from werkzeug.exceptions import NotFound -- cgit v1.2.3 From 23b17a6a1e01d199ca3bbb69e628a2b0f3b262bb Mon Sep 17 00:00:00 2001 From: Joseph Date: Sun, 29 Apr 2018 20:27:49 +0100 Subject: Fix for wiki.history.show with slashes in URL --- pysite/views/wiki/history/show.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pysite/views/wiki/history/show.py') diff --git a/pysite/views/wiki/history/show.py b/pysite/views/wiki/history/show.py index 50fc5d73..00a1dc27 100644 --- a/pysite/views/wiki/history/show.py +++ b/pysite/views/wiki/history/show.py @@ -8,7 +8,7 @@ from pysite.mixins import DBMixin class RevisionsListView(RouteView, DBMixin): - path = "/history/show/" + path = "/history/show/" name = "history.show" table_name = "wiki_revisions" -- cgit v1.2.3