Python 2 support dropped - .py files are UTF-8 by default in Python 3

This commit is contained in:
Labrys of Knossos 2022-11-27 19:17:08 -05:00
commit 80b03e8aea
19 changed files with 0 additions and 39 deletions

View file

@ -1,5 +1,3 @@
# coding=utf-8
import itertools
import locale
import os

View file

@ -1,5 +1,3 @@
# coding=utf-8
import requests
import core

View file

@ -1,5 +1,3 @@
# coding=utf-8
import os
import requests

View file

@ -1,5 +1,3 @@
# coding=utf-8
import os
import shutil

View file

@ -1,5 +1,3 @@
# coding=utf-8
import copy
import core

View file

@ -1,5 +1,3 @@
# coding=utf-8
import json
import os
import time

View file

@ -1,5 +1,3 @@
# coding=utf-8
import json
import os
import time

View file

@ -1,5 +1,3 @@
# coding=utf-8
import copy
import errno
import json

View file

@ -1,5 +1,3 @@
# coding=utf-8
import copy
import os
import shutil

View file

@ -1,5 +1,3 @@
# coding=utf-8
from core import logger, main_db
from core.utils import backup_versioned_file

View file

@ -1,5 +1,3 @@
# coding=utf-8
import os
import platform
import shutil

View file

@ -1,5 +1,3 @@
# coding=utf-8
import requests

View file

@ -1,5 +1,3 @@
# coding=utf-8
import logging
import os
import sys

View file

@ -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.

View file

@ -1,5 +1,3 @@
# coding=utf-8
import os
import platform
import re

View file

@ -1,5 +1,3 @@
# coding=utf-8
import errno
import json
import sys

View file

@ -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

View file

@ -1,5 +1,3 @@
# coding=utf-8
import requests
from core.utils import shutil_custom

View file

@ -1,4 +1,3 @@
# coding=utf-8
# Author: Nic Wolfe <nic@wolfeden.ca>
# Modified by: echel0n