diff --git a/core/__init__.py b/core/__init__.py index a9d2a1e9..50ffc928 100644 --- a/core/__init__.py +++ b/core/__init__.py @@ -1,3 +1,4 @@ +# coding=utf-8 import locale import os import re diff --git a/core/autoProcess/__init__.py b/core/autoProcess/__init__.py index e69de29b..bf893c06 100644 --- a/core/autoProcess/__init__.py +++ b/core/autoProcess/__init__.py @@ -0,0 +1 @@ +# coding=utf-8 \ No newline at end of file diff --git a/core/databases/__init__.py b/core/databases/__init__.py index 96661806..737828fb 100644 --- a/core/databases/__init__.py +++ b/core/databases/__init__.py @@ -1 +1,2 @@ +# coding=utf-8 __all__ = ["mainDB"] \ No newline at end of file diff --git a/core/databases/mainDB.py b/core/databases/mainDB.py index 89b89529..71c1e3b2 100644 --- a/core/databases/mainDB.py +++ b/core/databases/mainDB.py @@ -1,3 +1,4 @@ +# coding=utf-8 import core from core import logger, nzbToMediaDB from core.nzbToMediaUtil import backupVersionedFile @@ -5,6 +6,7 @@ from core.nzbToMediaUtil import backupVersionedFile MIN_DB_VERSION = 1 # oldest db version we support migrating from MAX_DB_VERSION = 2 + def backupDatabase(version): logger.info("Backing up database before upgrade") if not backupVersionedFile(nzbToMediaDB.dbFilename(), version): diff --git a/core/extractor/__init__.py b/core/extractor/__init__.py index e69de29b..bf893c06 100644 --- a/core/extractor/__init__.py +++ b/core/extractor/__init__.py @@ -0,0 +1 @@ +# coding=utf-8 \ No newline at end of file diff --git a/core/extractor/extractor.py b/core/extractor/extractor.py index 92faf7be..68d5e6df 100644 --- a/core/extractor/extractor.py +++ b/core/extractor/extractor.py @@ -1,3 +1,4 @@ +# coding=utf-8 import os import platform import shutil diff --git a/core/gh_api.py b/core/gh_api.py index abdf8b1d..8da2a794 100644 --- a/core/gh_api.py +++ b/core/gh_api.py @@ -1,3 +1,4 @@ +# coding=utf-8 import json import requests diff --git a/core/linktastic/__init__.py b/core/linktastic/__init__.py index e69de29b..bf893c06 100644 --- a/core/linktastic/__init__.py +++ b/core/linktastic/__init__.py @@ -0,0 +1 @@ +# coding=utf-8 \ No newline at end of file diff --git a/core/linktastic/linktastic.py b/core/linktastic/linktastic.py index 408bbc2e..9d981b57 100644 --- a/core/linktastic/linktastic.py +++ b/core/linktastic/linktastic.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Linktastic Module # - A python2/3 compatible module that can create hardlinks/symlinks on windows-based systems # diff --git a/core/logger.py b/core/logger.py index 671bfc04..0b8a5446 100644 --- a/core/logger.py +++ b/core/logger.py @@ -1,3 +1,4 @@ +# coding=utf-8 from __future__ import with_statement import os diff --git a/core/nzbToMediaAutoFork.py b/core/nzbToMediaAutoFork.py index 966b453f..f5140228 100644 --- a/core/nzbToMediaAutoFork.py +++ b/core/nzbToMediaAutoFork.py @@ -1,3 +1,4 @@ +# coding=utf-8 import urllib import core import requests diff --git a/core/nzbToMediaConfig.py b/core/nzbToMediaConfig.py index c5c14512..40a48b2b 100644 --- a/core/nzbToMediaConfig.py +++ b/core/nzbToMediaConfig.py @@ -1,3 +1,4 @@ +# coding=utf-8 import os import shutil import copy diff --git a/core/nzbToMediaDB.py b/core/nzbToMediaDB.py index 2c3335e7..9ca856d5 100644 --- a/core/nzbToMediaDB.py +++ b/core/nzbToMediaDB.py @@ -1,3 +1,4 @@ +# coding=utf-8 from __future__ import with_statement import re diff --git a/core/nzbToMediaSceneExceptions.py b/core/nzbToMediaSceneExceptions.py index 91796582..7eedd7a0 100644 --- a/core/nzbToMediaSceneExceptions.py +++ b/core/nzbToMediaSceneExceptions.py @@ -1,3 +1,4 @@ +# coding=utf-8 import os import re import core diff --git a/core/nzbToMediaUserScript.py b/core/nzbToMediaUserScript.py index 5d07ab0b..6acc0169 100644 --- a/core/nzbToMediaUserScript.py +++ b/core/nzbToMediaUserScript.py @@ -1,3 +1,4 @@ +# coding=utf-8 import os import core from subprocess import Popen diff --git a/core/nzbToMediaUtil.py b/core/nzbToMediaUtil.py index 3dad6577..53bdf27a 100644 --- a/core/nzbToMediaUtil.py +++ b/core/nzbToMediaUtil.py @@ -1,3 +1,4 @@ +# coding=utf-8 from __future__ import unicode_literals import os import re diff --git a/core/synchronousdeluge/__init__.py b/core/synchronousdeluge/__init__.py index d7edfe22..6155881f 100644 --- a/core/synchronousdeluge/__init__.py +++ b/core/synchronousdeluge/__init__.py @@ -1,3 +1,4 @@ +# coding=utf-8 """A synchronous implementation of the Deluge RPC protocol based on gevent-deluge by Christopher Rosell. diff --git a/core/synchronousdeluge/client.py b/core/synchronousdeluge/client.py index f35663e4..b4228d83 100644 --- a/core/synchronousdeluge/client.py +++ b/core/synchronousdeluge/client.py @@ -1,3 +1,4 @@ +# coding=utf-8 import os import platform diff --git a/core/synchronousdeluge/exceptions.py b/core/synchronousdeluge/exceptions.py index da6cf022..ff622cb1 100644 --- a/core/synchronousdeluge/exceptions.py +++ b/core/synchronousdeluge/exceptions.py @@ -1,3 +1,4 @@ +# coding=utf-8 __all__ = ["DelugeRPCError"] class DelugeRPCError(Exception): diff --git a/core/synchronousdeluge/protocol.py b/core/synchronousdeluge/protocol.py index 756d4dfc..9af38b4d 100644 --- a/core/synchronousdeluge/protocol.py +++ b/core/synchronousdeluge/protocol.py @@ -1,3 +1,4 @@ +# coding=utf-8 __all__ = ["DelugeRPCRequest", "DelugeRPCResponse"] class DelugeRPCRequest(object): diff --git a/core/synchronousdeluge/rencode.py b/core/synchronousdeluge/rencode.py index a0a6eec3..0f6ca1ec 100644 --- a/core/synchronousdeluge/rencode.py +++ b/core/synchronousdeluge/rencode.py @@ -1,4 +1,4 @@ - +# coding=utf-8 """ rencode -- Web safe object pickling/unpickling. diff --git a/core/synchronousdeluge/transfer.py b/core/synchronousdeluge/transfer.py index 27982fab..0f39bcab 100644 --- a/core/synchronousdeluge/transfer.py +++ b/core/synchronousdeluge/transfer.py @@ -1,3 +1,4 @@ +# coding=utf-8 import zlib import struct import socket diff --git a/core/transcoder/__init__.py b/core/transcoder/__init__.py index 1f47cffe..b1629751 100644 --- a/core/transcoder/__init__.py +++ b/core/transcoder/__init__.py @@ -1 +1,2 @@ +# coding=utf-8 __author__ = 'Justin' diff --git a/core/transcoder/transcoder.py b/core/transcoder/transcoder.py index a3e536f5..622b5f08 100644 --- a/core/transcoder/transcoder.py +++ b/core/transcoder/transcoder.py @@ -1,3 +1,4 @@ +# coding=utf-8 import errno import os import platform diff --git a/core/transmissionrpc/six.py b/core/transmissionrpc/six.py index 836d516c..b73b777a 100644 --- a/core/transmissionrpc/six.py +++ b/core/transmissionrpc/six.py @@ -1,3 +1,4 @@ +# coding=utf-8 """Utilities for writing code that runs on Python 2 and 3""" # Copyright (c) 2010-2013 Benjamin Peterson diff --git a/core/utorrent/__init__.py b/core/utorrent/__init__.py index e69de29b..bf893c06 100644 --- a/core/utorrent/__init__.py +++ b/core/utorrent/__init__.py @@ -0,0 +1 @@ +# coding=utf-8 \ No newline at end of file diff --git a/core/utorrent/upload.py b/core/utorrent/upload.py index 9886c3ec..8a72306a 100644 --- a/core/utorrent/upload.py +++ b/core/utorrent/upload.py @@ -1,3 +1,4 @@ +# coding=utf-8 #code copied from http://www.doughellmann.com/PyMOTW/urllib2/ import itertools diff --git a/core/versionCheck.py b/core/versionCheck.py index 5066a3e9..773a7f25 100644 --- a/core/versionCheck.py +++ b/core/versionCheck.py @@ -1,3 +1,4 @@ +# coding=utf-8 # Author: Nic Wolfe # Modified by: echel0n