mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 02:36:10 +00:00
Merge pull request #874 from oddstr13/pr-cleanup-2
Remove unused function compare_version
This commit is contained in:
commit
f4ffe69ea5
2 changed files with 0 additions and 20 deletions
|
@ -16,7 +16,6 @@ from .utils import validate_bluray_dir
|
||||||
from .utils import validate_dvd_dir
|
from .utils import validate_dvd_dir
|
||||||
from .utils import values
|
from .utils import values
|
||||||
from .utils import JSONRPC
|
from .utils import JSONRPC
|
||||||
from .utils import compare_version
|
|
||||||
from .utils import unzip
|
from .utils import unzip
|
||||||
from .utils import create_id
|
from .utils import create_id
|
||||||
from .utils import convert_to_local as Local
|
from .utils import convert_to_local as Local
|
||||||
|
|
|
@ -10,7 +10,6 @@ import sys
|
||||||
import re
|
import re
|
||||||
import unicodedata
|
import unicodedata
|
||||||
from uuid import uuid4
|
from uuid import uuid4
|
||||||
from distutils.version import LooseVersion
|
|
||||||
|
|
||||||
from dateutil import tz, parser
|
from dateutil import tz, parser
|
||||||
from six import text_type, string_types, iteritems, ensure_text, ensure_binary
|
from six import text_type, string_types, iteritems, ensure_text, ensure_binary
|
||||||
|
@ -106,24 +105,6 @@ def create_id():
|
||||||
return uuid4()
|
return uuid4()
|
||||||
|
|
||||||
|
|
||||||
def compare_version(a, b):
|
|
||||||
|
|
||||||
''' -1 a is smaller
|
|
||||||
1 a is larger
|
|
||||||
0 equal
|
|
||||||
'''
|
|
||||||
a = LooseVersion(a)
|
|
||||||
b = LooseVersion(b)
|
|
||||||
|
|
||||||
if a < b:
|
|
||||||
return -1
|
|
||||||
|
|
||||||
if a > b:
|
|
||||||
return 1
|
|
||||||
|
|
||||||
return 0
|
|
||||||
|
|
||||||
|
|
||||||
def find(dict, item):
|
def find(dict, item):
|
||||||
|
|
||||||
''' Find value in dictionary.
|
''' Find value in dictionary.
|
||||||
|
|
Loading…
Reference in a new issue