Remove unused function compare_version

This commit is contained in:
Odd Stråbø 2024-06-10 04:30:51 +00:00
parent 819b8618cf
commit 4a1ac6dede
2 changed files with 0 additions and 20 deletions

View file

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

View file

@ -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.