mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
Add encoding declaration
This commit is contained in:
parent
8a7883b9af
commit
81ffe0456d
28 changed files with 29 additions and 1 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
# coding=utf-8
|
||||||
import locale
|
import locale
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
# coding=utf-8
|
|
@ -1 +1,2 @@
|
||||||
|
# coding=utf-8
|
||||||
__all__ = ["mainDB"]
|
__all__ = ["mainDB"]
|
|
@ -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):
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
# coding=utf-8
|
|
@ -1,3 +1,4 @@
|
||||||
|
# coding=utf-8
|
||||||
import os
|
import os
|
||||||
import platform
|
import platform
|
||||||
import shutil
|
import shutil
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# coding=utf-8
|
||||||
import json
|
import json
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
# coding=utf-8
|
|
@ -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
|
||||||
#
|
#
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# coding=utf-8
|
||||||
from __future__ import with_statement
|
from __future__ import with_statement
|
||||||
|
|
||||||
import os
|
import os
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# coding=utf-8
|
||||||
import urllib
|
import urllib
|
||||||
import core
|
import core
|
||||||
import requests
|
import requests
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# coding=utf-8
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import copy
|
import copy
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# coding=utf-8
|
||||||
from __future__ import with_statement
|
from __future__ import with_statement
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# coding=utf-8
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import core
|
import core
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# coding=utf-8
|
||||||
import os
|
import os
|
||||||
import core
|
import core
|
||||||
from subprocess import Popen
|
from subprocess import Popen
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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.
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# coding=utf-8
|
||||||
import os
|
import os
|
||||||
import platform
|
import platform
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# coding=utf-8
|
||||||
__all__ = ["DelugeRPCError"]
|
__all__ = ["DelugeRPCError"]
|
||||||
|
|
||||||
class DelugeRPCError(Exception):
|
class DelugeRPCError(Exception):
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# coding=utf-8
|
||||||
__all__ = ["DelugeRPCRequest", "DelugeRPCResponse"]
|
__all__ = ["DelugeRPCRequest", "DelugeRPCResponse"]
|
||||||
|
|
||||||
class DelugeRPCRequest(object):
|
class DelugeRPCRequest(object):
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
|
# coding=utf-8
|
||||||
"""
|
"""
|
||||||
rencode -- Web safe object pickling/unpickling.
|
rencode -- Web safe object pickling/unpickling.
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# coding=utf-8
|
||||||
import zlib
|
import zlib
|
||||||
import struct
|
import struct
|
||||||
import socket
|
import socket
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
|
# coding=utf-8
|
||||||
__author__ = 'Justin'
|
__author__ = 'Justin'
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
# coding=utf-8
|
||||||
import errno
|
import errno
|
||||||
import os
|
import os
|
||||||
import platform
|
import platform
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
# coding=utf-8
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue