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 os
import re

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,4 @@
# coding=utf-8
# Linktastic Module
# - 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
import os

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,3 +1,4 @@
# coding=utf-8
"""Utilities for writing code that runs on Python 2 and 3"""
# 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/
import itertools

View file

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