Add encoding declaration

This commit is contained in:
Labrys 2016-06-04 21:36:03 -04:00
commit 81ffe0456d
28 changed files with 29 additions and 1 deletions

View file

@ -1,3 +1,4 @@
# coding=utf-8
import locale import locale
import os import os
import re import re

View file

@ -0,0 +1 @@
# coding=utf-8

View file

@ -1 +1,2 @@
# coding=utf-8
__all__ = ["mainDB"] __all__ = ["mainDB"]

View file

@ -1,3 +1,4 @@
# coding=utf-8
import core import core
from core import logger, nzbToMediaDB from core import logger, nzbToMediaDB
from core.nzbToMediaUtil import backupVersionedFile 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 MIN_DB_VERSION = 1 # oldest db version we support migrating from
MAX_DB_VERSION = 2 MAX_DB_VERSION = 2
def backupDatabase(version): def backupDatabase(version):
logger.info("Backing up database before upgrade") logger.info("Backing up database before upgrade")
if not backupVersionedFile(nzbToMediaDB.dbFilename(), version): if not backupVersionedFile(nzbToMediaDB.dbFilename(), version):

View file

@ -0,0 +1 @@
# coding=utf-8

View file

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

View file

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

View file

@ -0,0 +1 @@
# coding=utf-8

View file

@ -1,3 +1,4 @@
# coding=utf-8
# Linktastic Module # Linktastic Module
# - A python2/3 compatible module that can create hardlinks/symlinks on windows-based systems # - A python2/3 compatible module that can create hardlinks/symlinks on windows-based systems
# #

View file

@ -1,3 +1,4 @@
# coding=utf-8
from __future__ import with_statement from __future__ import with_statement
import os import os

View file

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

View file

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

View file

@ -1,3 +1,4 @@
# coding=utf-8
from __future__ import with_statement from __future__ import with_statement
import re import re

View file

@ -1,3 +1,4 @@
# coding=utf-8
import os import os
import re import re
import core import core

View file

@ -1,3 +1,4 @@
# coding=utf-8
import os import os
import core import core
from subprocess import Popen from subprocess import Popen

View file

@ -1,3 +1,4 @@
# coding=utf-8
from __future__ import unicode_literals from __future__ import unicode_literals
import os import os
import re import re

View file

@ -1,3 +1,4 @@
# coding=utf-8
"""A synchronous implementation of the Deluge RPC protocol """A synchronous implementation of the Deluge RPC protocol
based on gevent-deluge by Christopher Rosell. based on gevent-deluge by Christopher Rosell.

View file

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

View file

@ -1,3 +1,4 @@
# coding=utf-8
__all__ = ["DelugeRPCError"] __all__ = ["DelugeRPCError"]
class DelugeRPCError(Exception): class DelugeRPCError(Exception):

View file

@ -1,3 +1,4 @@
# coding=utf-8
__all__ = ["DelugeRPCRequest", "DelugeRPCResponse"] __all__ = ["DelugeRPCRequest", "DelugeRPCResponse"]
class DelugeRPCRequest(object): class DelugeRPCRequest(object):

View file

@ -1,4 +1,4 @@
# coding=utf-8
""" """
rencode -- Web safe object pickling/unpickling. rencode -- Web safe object pickling/unpickling.

View file

@ -1,3 +1,4 @@
# coding=utf-8
import zlib import zlib
import struct import struct
import socket import socket

View file

@ -1 +1,2 @@
# coding=utf-8
__author__ = 'Justin' __author__ = 'Justin'

View file

@ -1,3 +1,4 @@
# coding=utf-8
import errno import errno
import os import os
import platform import platform

View file

@ -1,3 +1,4 @@
# coding=utf-8
"""Utilities for writing code that runs on Python 2 and 3""" """Utilities for writing code that runs on Python 2 and 3"""
# Copyright (c) 2010-2013 Benjamin Peterson # Copyright (c) 2010-2013 Benjamin Peterson

View file

@ -0,0 +1 @@
# coding=utf-8

View file

@ -1,3 +1,4 @@
# coding=utf-8
#code copied from http://www.doughellmann.com/PyMOTW/urllib2/ #code copied from http://www.doughellmann.com/PyMOTW/urllib2/
import itertools import itertools

View file

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