From feffe2bc777f3e88af18f41c4e4d3802371f29d7 Mon Sep 17 00:00:00 2001 From: Raffaele Salmaso Date: Sun, 18 Feb 2018 10:13:14 +0100 Subject: [PATCH] Removed "coding: utf-8" directive --- src/wiki/__init__.py | 1 - src/wiki/conf/__init__.py | 1 - src/wiki/core/plugins/loader.py | 1 - src/wiki/core/plugins/registry.py | 1 - src/wiki/core/utils.py | 1 - src/wiki/decorators.py | 1 - src/wiki/editors/markitup.py | 1 - src/wiki/forms.py | 1 - src/wiki/migrations/0001_initial.py | 1 - src/wiki/migrations/0002_urlpath_moved_to.py | 1 - src/wiki/models/__init__.py | 1 - src/wiki/models/article.py | 1 - src/wiki/models/pluginbase.py | 1 - src/wiki/models/urlpath.py | 1 - src/wiki/plugins/attachments/forms.py | 1 - src/wiki/plugins/attachments/migrations/0001_initial.py | 1 - .../plugins/attachments/migrations/0002_auto_20151118_1816.py | 1 - src/wiki/plugins/attachments/models.py | 1 - src/wiki/plugins/attachments/views.py | 1 - src/wiki/plugins/attachments/wiki_plugin.py | 1 - src/wiki/plugins/globalhistory/models.py | 1 - src/wiki/plugins/images/markdown_extensions.py | 1 - src/wiki/plugins/images/migrations/0001_initial.py | 1 - src/wiki/plugins/images/migrations/0002_auto_20151118_1811.py | 1 - src/wiki/plugins/images/wiki_plugin.py | 1 - src/wiki/plugins/links/mdx/urlize.py | 1 - src/wiki/plugins/links/wiki_plugin.py | 1 - src/wiki/plugins/macros/mdx/macro.py | 1 - src/wiki/plugins/notifications/migrations/0001_initial.py | 1 - .../plugins/notifications/migrations/0002_auto_20151118_1811.py | 1 - src/wiki/plugins/notifications/models.py | 1 - src/wiki/templatetags/wiki_tags.py | 1 - src/wiki/urls.py | 1 - src/wiki/views/accounts.py | 1 - src/wiki/views/article.py | 1 - testproject/testproject/settings/base.py | 1 - tests/core/test_markdown.py | 1 - tests/plugins/links/test_links.py | 1 - tests/plugins/macros/test_toc.py | 2 -- 39 files changed, 40 deletions(-) diff --git a/src/wiki/__init__.py b/src/wiki/__init__.py index a71dfbf1..b173af65 100644 --- a/src/wiki/__init__.py +++ b/src/wiki/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # This package and all its sub-packages are part of django-wiki, # except where otherwise stated. # diff --git a/src/wiki/conf/__init__.py b/src/wiki/conf/__init__.py index 40a96afc..e69de29b 100644 --- a/src/wiki/conf/__init__.py +++ b/src/wiki/conf/__init__.py @@ -1 +0,0 @@ -# -*- coding: utf-8 -*- diff --git a/src/wiki/core/plugins/loader.py b/src/wiki/core/plugins/loader.py index 2cd1e5bf..b716ef1e 100644 --- a/src/wiki/core/plugins/loader.py +++ b/src/wiki/core/plugins/loader.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.utils.module_loading import autodiscover_modules diff --git a/src/wiki/core/plugins/registry.py b/src/wiki/core/plugins/registry.py index f018fd37..732a0a0f 100644 --- a/src/wiki/core/plugins/registry.py +++ b/src/wiki/core/plugins/registry.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from importlib import import_module from django.utils.six import string_types diff --git a/src/wiki/core/utils.py b/src/wiki/core/utils.py index 6af8ca84..2f8b7962 100644 --- a/src/wiki/core/utils.py +++ b/src/wiki/core/utils.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from importlib import import_module from django.http.response import JsonResponse diff --git a/src/wiki/decorators.py b/src/wiki/decorators.py index e932536a..77c326f1 100644 --- a/src/wiki/decorators.py +++ b/src/wiki/decorators.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from functools import wraps from django.core.urlresolvers import reverse diff --git a/src/wiki/editors/markitup.py b/src/wiki/editors/markitup.py index 6f0a30ae..517925f3 100644 --- a/src/wiki/editors/markitup.py +++ b/src/wiki/editors/markitup.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 from django import forms from django.forms.utils import flatatt from django.utils.encoding import force_text diff --git a/src/wiki/forms.py b/src/wiki/forms.py index df29b58c..c597bf54 100644 --- a/src/wiki/forms.py +++ b/src/wiki/forms.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import random import string from datetime import timedelta diff --git a/src/wiki/migrations/0001_initial.py b/src/wiki/migrations/0001_initial.py index 12d6d44f..6e31069f 100644 --- a/src/wiki/migrations/0001_initial.py +++ b/src/wiki/migrations/0001_initial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import django.db.models.deletion import mptt.fields from django.conf import settings diff --git a/src/wiki/migrations/0002_urlpath_moved_to.py b/src/wiki/migrations/0002_urlpath_moved_to.py index d7c32b50..a1a97da3 100644 --- a/src/wiki/migrations/0002_urlpath_moved_to.py +++ b/src/wiki/migrations/0002_urlpath_moved_to.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Generated by Django 1.10.7 on 2017-06-06 23:18 import django.db.models.deletion import mptt.fields diff --git a/src/wiki/models/__init__.py b/src/wiki/models/__init__.py index 8e2e362f..c78a98b7 100644 --- a/src/wiki/models/__init__.py +++ b/src/wiki/models/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.apps import apps from django.conf import settings as django_settings from django.core.exceptions import ImproperlyConfigured diff --git a/src/wiki/models/article.py b/src/wiki/models/article.py index 56b9b597..e8143574 100644 --- a/src/wiki/models/article.py +++ b/src/wiki/models/article.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.contrib.contenttypes.fields import GenericForeignKey from django.contrib.contenttypes.models import ContentType from django.core.cache import cache diff --git a/src/wiki/models/pluginbase.py b/src/wiki/models/pluginbase.py index d006eb02..2ea5c4a6 100644 --- a/src/wiki/models/pluginbase.py +++ b/src/wiki/models/pluginbase.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ There are three kinds of plugin base models: diff --git a/src/wiki/models/urlpath.py b/src/wiki/models/urlpath.py index 4d34ea22..9a4c2f60 100644 --- a/src/wiki/models/urlpath.py +++ b/src/wiki/models/urlpath.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import logging import warnings diff --git a/src/wiki/plugins/attachments/forms.py b/src/wiki/plugins/attachments/forms.py index e08c8390..7b97cd69 100644 --- a/src/wiki/plugins/attachments/forms.py +++ b/src/wiki/plugins/attachments/forms.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import tempfile import zipfile diff --git a/src/wiki/plugins/attachments/migrations/0001_initial.py b/src/wiki/plugins/attachments/migrations/0001_initial.py index 38f588f2..3e0a2ccf 100644 --- a/src/wiki/plugins/attachments/migrations/0001_initial.py +++ b/src/wiki/plugins/attachments/migrations/0001_initial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import django.db.models.deletion from django.conf import settings from django.db import migrations, models diff --git a/src/wiki/plugins/attachments/migrations/0002_auto_20151118_1816.py b/src/wiki/plugins/attachments/migrations/0002_auto_20151118_1816.py index 5cc37fd1..b43cb171 100644 --- a/src/wiki/plugins/attachments/migrations/0002_auto_20151118_1816.py +++ b/src/wiki/plugins/attachments/migrations/0002_auto_20151118_1816.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.db import migrations, models diff --git a/src/wiki/plugins/attachments/models.py b/src/wiki/plugins/attachments/models.py index 59cc55fc..aa57afe4 100644 --- a/src/wiki/plugins/attachments/models.py +++ b/src/wiki/plugins/attachments/models.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import os from django.conf import settings as django_settings diff --git a/src/wiki/plugins/attachments/views.py b/src/wiki/plugins/attachments/views.py index bdbe3487..6aa2407d 100644 --- a/src/wiki/plugins/attachments/views.py +++ b/src/wiki/plugins/attachments/views.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.contrib import messages from django.core.exceptions import ObjectDoesNotExist from django.db.models import Q diff --git a/src/wiki/plugins/attachments/wiki_plugin.py b/src/wiki/plugins/attachments/wiki_plugin.py index fde4b58f..0120150b 100644 --- a/src/wiki/plugins/attachments/wiki_plugin.py +++ b/src/wiki/plugins/attachments/wiki_plugin.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.conf.urls import include, url from django.utils.translation import ugettext as _ from wiki.core.plugins import registry diff --git a/src/wiki/plugins/globalhistory/models.py b/src/wiki/plugins/globalhistory/models.py index 40a96afc..e69de29b 100644 --- a/src/wiki/plugins/globalhistory/models.py +++ b/src/wiki/plugins/globalhistory/models.py @@ -1 +0,0 @@ -# -*- coding: utf-8 -*- diff --git a/src/wiki/plugins/images/markdown_extensions.py b/src/wiki/plugins/images/markdown_extensions.py index 19dd5866..35f915a1 100644 --- a/src/wiki/plugins/images/markdown_extensions.py +++ b/src/wiki/plugins/images/markdown_extensions.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import re import markdown diff --git a/src/wiki/plugins/images/migrations/0001_initial.py b/src/wiki/plugins/images/migrations/0001_initial.py index 092756ec..59cb7b94 100644 --- a/src/wiki/plugins/images/migrations/0001_initial.py +++ b/src/wiki/plugins/images/migrations/0001_initial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import wiki.plugins.images.models from django.db import migrations, models diff --git a/src/wiki/plugins/images/migrations/0002_auto_20151118_1811.py b/src/wiki/plugins/images/migrations/0002_auto_20151118_1811.py index 56dfdb76..964937a0 100644 --- a/src/wiki/plugins/images/migrations/0002_auto_20151118_1811.py +++ b/src/wiki/plugins/images/migrations/0002_auto_20151118_1811.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.db import migrations, models diff --git a/src/wiki/plugins/images/wiki_plugin.py b/src/wiki/plugins/images/wiki_plugin.py index cc03946e..eda4236e 100644 --- a/src/wiki/plugins/images/wiki_plugin.py +++ b/src/wiki/plugins/images/wiki_plugin.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.conf.urls import url from django.utils.translation import ugettext as _ from wiki.core.plugins import registry diff --git a/src/wiki/plugins/links/mdx/urlize.py b/src/wiki/plugins/links/mdx/urlize.py index 564b3ed7..d02fc4d7 100644 --- a/src/wiki/plugins/links/mdx/urlize.py +++ b/src/wiki/plugins/links/mdx/urlize.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import re import markdown diff --git a/src/wiki/plugins/links/wiki_plugin.py b/src/wiki/plugins/links/wiki_plugin.py index adef3370..8072d98c 100644 --- a/src/wiki/plugins/links/wiki_plugin.py +++ b/src/wiki/plugins/links/wiki_plugin.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.conf.urls import url from django.core.urlresolvers import reverse_lazy from django.utils.translation import ugettext as _ diff --git a/src/wiki/plugins/macros/mdx/macro.py b/src/wiki/plugins/macros/mdx/macro.py index 817b7972..184b57d2 100644 --- a/src/wiki/plugins/macros/mdx/macro.py +++ b/src/wiki/plugins/macros/mdx/macro.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import re import markdown diff --git a/src/wiki/plugins/notifications/migrations/0001_initial.py b/src/wiki/plugins/notifications/migrations/0001_initial.py index 272378a5..059e9f7f 100644 --- a/src/wiki/plugins/notifications/migrations/0001_initial.py +++ b/src/wiki/plugins/notifications/migrations/0001_initial.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.db import migrations, models diff --git a/src/wiki/plugins/notifications/migrations/0002_auto_20151118_1811.py b/src/wiki/plugins/notifications/migrations/0002_auto_20151118_1811.py index d315d8b7..d0e46a1c 100644 --- a/src/wiki/plugins/notifications/migrations/0002_auto_20151118_1811.py +++ b/src/wiki/plugins/notifications/migrations/0002_auto_20151118_1811.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.db import migrations, models diff --git a/src/wiki/plugins/notifications/models.py b/src/wiki/plugins/notifications/models.py index b092d3de..4b23e353 100644 --- a/src/wiki/plugins/notifications/models.py +++ b/src/wiki/plugins/notifications/models.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.core.urlresolvers import reverse from django.db import models from django.db.models import signals diff --git a/src/wiki/templatetags/wiki_tags.py b/src/wiki/templatetags/wiki_tags.py index 917276d9..ae67854b 100644 --- a/src/wiki/templatetags/wiki_tags.py +++ b/src/wiki/templatetags/wiki_tags.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import re from django.apps import apps diff --git a/src/wiki/urls.py b/src/wiki/urls.py index 45851267..d8663da9 100644 --- a/src/wiki/urls.py +++ b/src/wiki/urls.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from django.conf.urls import include, url from wiki.conf import settings from wiki.core.plugins import registry diff --git a/src/wiki/views/accounts.py b/src/wiki/views/accounts.py index def962a2..b20706cc 100644 --- a/src/wiki/views/accounts.py +++ b/src/wiki/views/accounts.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """Here is a very basic handling of accounts. If you have your own account handling, don't worry, just switch off account handling in diff --git a/src/wiki/views/article.py b/src/wiki/views/article.py index 0462faf6..dd37de6c 100644 --- a/src/wiki/views/article.py +++ b/src/wiki/views/article.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- import difflib import logging diff --git a/testproject/testproject/settings/base.py b/testproject/testproject/settings/base.py index 1496053c..93080686 100644 --- a/testproject/testproject/settings/base.py +++ b/testproject/testproject/settings/base.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- """ Generated by 'django-admin startproject' using Django 1.9.5. diff --git a/tests/core/test_markdown.py b/tests/core/test_markdown.py index 79e1dd59..96ae4e82 100644 --- a/tests/core/test_markdown.py +++ b/tests/core/test_markdown.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from __future__ import unicode_literals import markdown diff --git a/tests/plugins/links/test_links.py b/tests/plugins/links/test_links.py index b3f2d4e6..3a1d5fe0 100644 --- a/tests/plugins/links/test_links.py +++ b/tests/plugins/links/test_links.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- from __future__ import unicode_literals import markdown diff --git a/tests/plugins/macros/test_toc.py b/tests/plugins/macros/test_toc.py index 4c4cc343..75efd23f 100644 --- a/tests/plugins/macros/test_toc.py +++ b/tests/plugins/macros/test_toc.py @@ -1,5 +1,3 @@ -# -*- coding: utf-8 -*- - from __future__ import unicode_literals import markdown -- 2.45.2