From 9383a72704c3aef0adb25610681656edc50e50dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Pokorn=C3=BD=20=28Rai=29?= Date: Fri, 27 Dec 2019 18:06:06 +0100 Subject: [PATCH] Remove unneeded utf-8 encoding declaration UTF-8 is the default as of Python 3. See: https://docs.python.org/3/reference/lexical_analysis.html#encoding-declarations --- anki/__init__.py | 1 - anki/cards.py | 1 - anki/collection.py | 1 - anki/consts.py | 1 - anki/db.py | 1 - anki/decks.py | 1 - anki/errors.py | 5 ++--- anki/exporting.py | 1 - anki/find.py | 1 - anki/hooks.py | 1 - anki/importing/__init__.py | 1 - anki/importing/anki2.py | 1 - anki/importing/apkg.py | 1 - anki/importing/base.py | 1 - anki/importing/csvfile.py | 1 - anki/importing/mnemo.py | 1 - anki/importing/noteimp.py | 1 - anki/importing/pauker.py | 1 - anki/importing/supermemo_xml.py | 1 - anki/lang.py | 1 - anki/latex.py | 1 - anki/media.py | 1 - anki/models.py | 1 - anki/notes.py | 1 - anki/sched.py | 1 - anki/schedv2.py | 1 - anki/sound.py | 1 - anki/stats.py | 1 - anki/stdmodels.py | 1 - anki/storage.py | 1 - anki/sync.py | 1 - anki/tags.py | 1 - anki/template/furigana.py | 1 - anki/template/hint.py | 1 - anki/utils.py | 1 - 35 files changed, 2 insertions(+), 37 deletions(-) diff --git a/anki/__init__.py b/anki/__init__.py index baea42e12..c9878de39 100644 --- a/anki/__init__.py +++ b/anki/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/cards.py b/anki/cards.py index 2460436d6..7d5dc80df 100644 --- a/anki/cards.py +++ b/anki/cards.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html import pprint diff --git a/anki/collection.py b/anki/collection.py index 11caa61e2..268804595 100644 --- a/anki/collection.py +++ b/anki/collection.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/consts.py b/anki/consts.py index c3eeaba1b..89e9ba13a 100644 --- a/anki/consts.py +++ b/anki/consts.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/db.py b/anki/db.py index f9bddb94f..087dcecee 100644 --- a/anki/db.py +++ b/anki/db.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/decks.py b/anki/decks.py index 97916b4b2..8ab41eb61 100644 --- a/anki/decks.py +++ b/anki/decks.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/errors.py b/anki/errors.py index dc781a7f6..f2b9d6056 100644 --- a/anki/errors.py +++ b/anki/errors.py @@ -1,9 +1,8 @@ -from typing import Any - -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html +from typing import Any + class AnkiError(Exception): def __init__(self, type, **data) -> None: diff --git a/anki/exporting.py b/anki/exporting.py index 6de98838f..36c3d30a0 100644 --- a/anki/exporting.py +++ b/anki/exporting.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/find.py b/anki/find.py index bfb4375de..63fefb084 100644 --- a/anki/find.py +++ b/anki/find.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/hooks.py b/anki/hooks.py index ed31cfdf8..398f2f6d6 100644 --- a/anki/hooks.py +++ b/anki/hooks.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/importing/__init__.py b/anki/importing/__init__.py index dfd2466dc..98dbbfb31 100644 --- a/anki/importing/__init__.py +++ b/anki/importing/__init__.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/importing/anki2.py b/anki/importing/anki2.py index fa2055a6e..46d54000c 100644 --- a/anki/importing/anki2.py +++ b/anki/importing/anki2.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/importing/apkg.py b/anki/importing/apkg.py index 036a56cf6..2aa4c3bab 100644 --- a/anki/importing/apkg.py +++ b/anki/importing/apkg.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/importing/base.py b/anki/importing/base.py index 4104ee64f..ccde5929c 100644 --- a/anki/importing/base.py +++ b/anki/importing/base.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/importing/csvfile.py b/anki/importing/csvfile.py index f974b8e94..ee2c3e204 100644 --- a/anki/importing/csvfile.py +++ b/anki/importing/csvfile.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/importing/mnemo.py b/anki/importing/mnemo.py index cdc5c7b06..dfd25d8eb 100644 --- a/anki/importing/mnemo.py +++ b/anki/importing/mnemo.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/importing/noteimp.py b/anki/importing/noteimp.py index cde4bf4a0..8b190a61b 100644 --- a/anki/importing/noteimp.py +++ b/anki/importing/noteimp.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/importing/pauker.py b/anki/importing/pauker.py index 37d7ef4dd..e24238735 100644 --- a/anki/importing/pauker.py +++ b/anki/importing/pauker.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Andreas Klauer # License: BSD-3 diff --git a/anki/importing/supermemo_xml.py b/anki/importing/supermemo_xml.py index 48ce88ae5..20c873295 100644 --- a/anki/importing/supermemo_xml.py +++ b/anki/importing/supermemo_xml.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: petr.michalec@gmail.com # License: GNU GPL, version 3 or later; http://www.gnu.org/licenses/agpl.html # pytype: disable=attribute-error diff --git a/anki/lang.py b/anki/lang.py index 8ceabe43f..e87ec9b12 100644 --- a/anki/lang.py +++ b/anki/lang.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/latex.py b/anki/latex.py index 40dc7eb3e..1f2190395 100644 --- a/anki/latex.py +++ b/anki/latex.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/media.py b/anki/media.py index def118c77..684e711f5 100644 --- a/anki/media.py +++ b/anki/media.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html import io diff --git a/anki/models.py b/anki/models.py index 04d21c383..035e3ae7d 100644 --- a/anki/models.py +++ b/anki/models.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/notes.py b/anki/notes.py index 5b26249dc..02c117ef0 100644 --- a/anki/notes.py +++ b/anki/notes.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/sched.py b/anki/sched.py index e6e679ddc..87b3c6f23 100644 --- a/anki/sched.py +++ b/anki/sched.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/schedv2.py b/anki/schedv2.py index e608db973..b10b8949b 100644 --- a/anki/schedv2.py +++ b/anki/schedv2.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/sound.py b/anki/sound.py index 26efeded6..75f11a91a 100644 --- a/anki/sound.py +++ b/anki/sound.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/stats.py b/anki/stats.py index 89778e0fb..50a4ccf7c 100644 --- a/anki/stats.py +++ b/anki/stats.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/stdmodels.py b/anki/stdmodels.py index 3b742671e..8d887b263 100644 --- a/anki/stdmodels.py +++ b/anki/stdmodels.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html from typing import Any, Callable, List, Tuple diff --git a/anki/storage.py b/anki/storage.py index 1012cf6af..26533c350 100644 --- a/anki/storage.py +++ b/anki/storage.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/sync.py b/anki/sync.py index 0ddec2033..b462dbe6b 100644 --- a/anki/sync.py +++ b/anki/sync.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/tags.py b/anki/tags.py index 33c528131..da353ac98 100644 --- a/anki/tags.py +++ b/anki/tags.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/template/furigana.py b/anki/template/furigana.py index 792cde85a..93e15f724 100644 --- a/anki/template/furigana.py +++ b/anki/template/furigana.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html # Based off Kieran Clancy's initial implementation. diff --git a/anki/template/hint.py b/anki/template/hint.py index cea659701..52733b68b 100644 --- a/anki/template/hint.py +++ b/anki/template/hint.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html diff --git a/anki/utils.py b/anki/utils.py index 950e51027..821a3a77c 100644 --- a/anki/utils.py +++ b/anki/utils.py @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- # Copyright: Ankitects Pty Ltd and contributors # License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html