mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-05-19 03:51:07 +00:00
Avoid distutils.version.StrictVersion
distutils.version is old code that predates PEP 440. We could add a dependency on https://packaging.pypa.io/en/latest/version/, but meh.
This commit is contained in:
parent
05c02da2b0
commit
5317347e54
1 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ Function to check for updates.
|
|||
import os
|
||||
from .configuration import Version as CurrentVersion
|
||||
from .url import get_content
|
||||
from distutils.version import StrictVersion
|
||||
from distutils.version import LooseVersion
|
||||
|
||||
# Use the Freecode submit file as source since that file gets updated
|
||||
# only when releasing a new version.
|
||||
|
|
@ -72,4 +72,4 @@ def get_online_version():
|
|||
|
||||
def is_newer_version(version):
|
||||
"""Check if given version is newer than current version."""
|
||||
return StrictVersion(version) > StrictVersion(CurrentVersion)
|
||||
return LooseVersion(version) > LooseVersion(CurrentVersion)
|
||||
|
|
|
|||
Loading…
Reference in a new issue