From 80b03e8aeabe8226418bd19a15f5cd0498285013 Mon Sep 17 00:00:00 2001 From: Labrys of Knossos Date: Sun, 27 Nov 2022 19:17:08 -0500 Subject: [PATCH] Python 2 support dropped - `.py` files are UTF-8 by default in Python 3 --- core/__init__.py | 2 -- core/auto_process/books.py | 2 -- core/auto_process/comics.py | 2 -- core/auto_process/games.py | 2 -- core/auto_process/managers/sickbeard.py | 2 -- core/auto_process/movies.py | 2 -- core/auto_process/music.py | 2 -- core/auto_process/tv.py | 2 -- core/configuration.py | 2 -- core/databases.py | 2 -- core/extractor/__init__.py | 2 -- core/github_api.py | 2 -- core/logger.py | 2 -- core/main_db.py | 3 --- core/scene_exceptions.py | 2 -- core/transcoder.py | 2 -- core/user_scripts.py | 3 --- core/utils/__init__.py | 2 -- core/version_check.py | 1 - 19 files changed, 39 deletions(-) diff --git a/core/__init__.py b/core/__init__.py index a350ca09..da1cfb66 100644 --- a/core/__init__.py +++ b/core/__init__.py @@ -1,5 +1,3 @@ -# coding=utf-8 - import itertools import locale import os diff --git a/core/auto_process/books.py b/core/auto_process/books.py index 1fc6fa3d..26771b13 100644 --- a/core/auto_process/books.py +++ b/core/auto_process/books.py @@ -1,5 +1,3 @@ -# coding=utf-8 - import requests import core diff --git a/core/auto_process/comics.py b/core/auto_process/comics.py index 7e4890ba..e8059d71 100644 --- a/core/auto_process/comics.py +++ b/core/auto_process/comics.py @@ -1,5 +1,3 @@ -# coding=utf-8 - import os import requests diff --git a/core/auto_process/games.py b/core/auto_process/games.py index 410b82a3..502ca9ba 100644 --- a/core/auto_process/games.py +++ b/core/auto_process/games.py @@ -1,5 +1,3 @@ -# coding=utf-8 - import os import shutil diff --git a/core/auto_process/managers/sickbeard.py b/core/auto_process/managers/sickbeard.py index 94df1c19..ad805cc1 100644 --- a/core/auto_process/managers/sickbeard.py +++ b/core/auto_process/managers/sickbeard.py @@ -1,5 +1,3 @@ -# coding=utf-8 - import copy import core diff --git a/core/auto_process/movies.py b/core/auto_process/movies.py index bc6ff3e7..9d0c7b3d 100644 --- a/core/auto_process/movies.py +++ b/core/auto_process/movies.py @@ -1,5 +1,3 @@ -# coding=utf-8 - import json import os import time diff --git a/core/auto_process/music.py b/core/auto_process/music.py index 8a09f135..c4fd61e2 100644 --- a/core/auto_process/music.py +++ b/core/auto_process/music.py @@ -1,5 +1,3 @@ -# coding=utf-8 - import json import os import time diff --git a/core/auto_process/tv.py b/core/auto_process/tv.py index 8fc735a2..927d3fb2 100644 --- a/core/auto_process/tv.py +++ b/core/auto_process/tv.py @@ -1,5 +1,3 @@ -# coding=utf-8 - import copy import errno import json diff --git a/core/configuration.py b/core/configuration.py index a936a8f8..8f6cb071 100644 --- a/core/configuration.py +++ b/core/configuration.py @@ -1,5 +1,3 @@ -# coding=utf-8 - import copy import os import shutil diff --git a/core/databases.py b/core/databases.py index 0803b9fc..82873fac 100644 --- a/core/databases.py +++ b/core/databases.py @@ -1,5 +1,3 @@ -# coding=utf-8 - from core import logger, main_db from core.utils import backup_versioned_file diff --git a/core/extractor/__init__.py b/core/extractor/__init__.py index df0066b0..05a2cfb1 100644 --- a/core/extractor/__init__.py +++ b/core/extractor/__init__.py @@ -1,5 +1,3 @@ -# coding=utf-8 - import os import platform import shutil diff --git a/core/github_api.py b/core/github_api.py index 8d2af4bd..46b495fd 100644 --- a/core/github_api.py +++ b/core/github_api.py @@ -1,5 +1,3 @@ -# coding=utf-8 - import requests diff --git a/core/logger.py b/core/logger.py index c991f913..9caa8dbe 100644 --- a/core/logger.py +++ b/core/logger.py @@ -1,5 +1,3 @@ -# coding=utf-8 - import logging import os import sys diff --git a/core/main_db.py b/core/main_db.py index 3a55feaa..67bc7df7 100644 --- a/core/main_db.py +++ b/core/main_db.py @@ -1,5 +1,3 @@ -# coding=utf-8 - import re import sqlite3 import time @@ -35,7 +33,6 @@ if PY2: else: from sqlite3 import Row - def db_filename(filename='nzbtomedia.db', suffix=None): """ Return the correct location of the database file. diff --git a/core/scene_exceptions.py b/core/scene_exceptions.py index 0b70c52c..5d748d09 100644 --- a/core/scene_exceptions.py +++ b/core/scene_exceptions.py @@ -1,5 +1,3 @@ -# coding=utf-8 - import os import platform import re diff --git a/core/transcoder.py b/core/transcoder.py index 575671e1..69b3821f 100644 --- a/core/transcoder.py +++ b/core/transcoder.py @@ -1,5 +1,3 @@ -# coding=utf-8 - import errno import json import sys diff --git a/core/user_scripts.py b/core/user_scripts.py index a42e17ad..b749a2a9 100644 --- a/core/user_scripts.py +++ b/core/user_scripts.py @@ -1,5 +1,3 @@ -# coding=utf-8 - import os from subprocess import Popen @@ -12,7 +10,6 @@ from core.auto_process.common import ( ) - def external_script(output_destination, torrent_name, torrent_label, settings): final_result = 0 # start at 0. num_files = 0 diff --git a/core/utils/__init__.py b/core/utils/__init__.py index 470fe4fd..136cd5e0 100644 --- a/core/utils/__init__.py +++ b/core/utils/__init__.py @@ -1,5 +1,3 @@ -# coding=utf-8 - import requests from core.utils import shutil_custom diff --git a/core/version_check.py b/core/version_check.py index aec94817..a70fb4f0 100644 --- a/core/version_check.py +++ b/core/version_check.py @@ -1,4 +1,3 @@ -# coding=utf-8 # Author: Nic Wolfe # Modified by: echel0n